I have a file open in the editor and a REPL view side by side.
I would like to switch back and forth between these two. I cannot use ctrl+pagedown from the REPL etc. because it goes through a number of other files that I’ve had open.
Thanks,
Petr
How do I switch back and forth between views
PetrKrysl
#1
0 Likes
PetrKrysl
#2
It seems that switching the groups would do the trick.
It isn’t foolproof, but in my usual set up it works fine.
0 Likes
FichteFoll
#3
I have a short plugin and key binding to cycle focus between all groups in a window. I won’t be at a computer until tomorrow but I can share it then if you’re interested.
0 Likes
eproxus
#5
I have the following keybindings to switch between groups on macOS:
{ "keys": ["super+["], "command": "focus_neighboring_group", "args": {"forward": false} },
{ "keys": ["super+]"], "command": "focus_neighboring_group" },
1 Like
FichteFoll
#6
Packages/User/cycle_groups.py
import sublime_plugin
class CycleGroupsCommand(sublime_plugin.WindowCommand):
def run(self):
w = self.window
w.focus_group((w.active_group() + 1) % w.num_groups())
Key binding:
{ "keys": ["ctrl+1"], "command": "cycle_groups" },
0 Likes