Sublime Forum

Why combing two actions into one key binding does not work?

#1

Dear all,

I am using the following JSON command to combine two actions with a single key combo.

{"keys": ["super+enter"], 
  "command": "chain", 
  "args": {
      "commands": [
      ["repl_transfer_current",{"scope": "lines"}],
      ["repl_transfer_current",{"scope": "lines", "action":"view_write"}]
      ]
  }
}

I would like to send the code over to REPL from editor, then run it. I looked at this as a reference https://stackoverflow.com/questions/23312111/multiple-commands-with-args-under-1-hotkey-in-sublime-text-3 , everything seems fine, what I am doing wrong?

Thanks in advance!

0 Likes

#3

That example uses the Chain of Command package.

0 Likes

#4

Ah, I didn’t read carefully, the post even says it.

I saw another suggestion using Macro recording. Tool > record macro, then save macro. I haven’t tried it.

0 Likes