Activate a specific tab in a specific pane(l) #24729
497e0bdf29873
started this conversation in
Config, Settings and Keymaps
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to bind, e.g.,
cmd-1
,cmd-2
, etc., to activate a tab in the main pane, andcmd-shift-1
,cmd-shift-2
, etc. to activate a tab in the terminal panel. This is needed to be able to swittch quickly, with a single key combination, to an actual terminal while, e.g., a build is running as a task in a newly opened tab in the terminal panel.Even with key sequence emulation, this does not seem currently possible: the only way I can find to switch focus to the terminal panel, or away from it, is through
terminal_panel::ToggleFocus
. As a toggle, this will not work.To be able to create this kind of keybindings, at the minimum a
terminal_panel::activate
would be required. This would still require far from ideal key sequence emulation, and otherwise unused fake keybindings for that (cmd-alt-shift-1
, etc.), so a better solution would be to properly support binding command sequences to keys:["sequence", "terminal_panel::activate", ["pane::ActivateItem", 0]]
. An alternative would be to add["workspace::ActivatePaneAndItem", pane-number, tab-number"]
.Would either of the latter be possible?
PS. On another note, I have already bound the default tab-switching keys
ctrl-1
to desktop switching, probably as something I learned from some X11 window manager back in the day. So I first tried to bindctrl-shift-1
etc., but they don't bind.ctrl-!
(the same key on my keyboard) binds, but then the bindings become language-specific, so very impractical.Beta Was this translation helpful? Give feedback.
All reactions