Sublime Forum

SublimeREPL switch pane focus after evaluation

#1

Dear Sublime Gurus,

I am pretty new to Sublime and have been using SublimeRepl to code in R and have the REPL panel on the right side of the window with the code panel on the left. There are two operations I do in sequence quite often (evaluate code and switch focus to the REPL pane) and wanted to write a macro so I could map a key binding to the set of actions. The simple macro I wrote is as follows:

[
{“command”: “repl_transfer_current”, “args”: {“scope”: “lines”}},
{“command”: “focus_group”, “args”: { “group”: 1 } },
]

These are just the command parts of the key bindings {“ctrl+,”, “l”} from REPL and “ctrl+2”.

When I map a key to the macro, it appears to work (in that it evaluates the relevant line of code), but it doesn’t actually switch focus. I’ve tried the same with Origami, changing the second command to in the macro to:

{“command”: “travel_to_pane”, “args”: {“direction”: “right”}}

but with the same result. Any help would be greatly appreciated.

0 Likes

#2

Hi Dave

I’m also pretty new for Sublime, and I tried to use SublimeREPL for python.

Currently, I’m running latest ST3 on Win10 (64bit), and my eval and transfer function doesn’t work at all. Just wonder if you give me your sublime version and system info, and hopefully tell me which part might go wrong to stop the repl from working on my end. Thanks.

0 Likes