-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use ToggleNextPane with Ctrl + Tab
?
#1962
Comments
I don't think you can bind Ctrl + Tab as a valid combination. I was using Ctrl Tab with tmux and when I was trying out zellij I realized that I can't set that keybind too. |
I'm wondering if it's not supported in kdl configuration or not supported in zj |
After i checked the code base, i found this zellij/zellij-utils/src/data.rs Lines 75 to 83 in 2641ccc
Hey @imsnif , sorry to bother, why the |
Hey @naosense - sorry for the late reply! I was moving to a new apartment over the weekend and was very busy. While it is possible to change the Before changing the struct, I'd recommend doing some manual tests and seeing what sort of input ctrl+tab (or any other key we'd like to check) gives us. You can add a Even if this doesn't work and we don't see a difference between ctrl+tab and eg. just tab, it might be an issue with |
Hey @imsnif, i added log after here zellij/zellij-client/src/stdin_handler.rs Line 27 in 2641ccc
and here zellij/zellij-client/src/stdin_handler.rs Line 44 in 2641ccc
test |
This is one of our big problems, I'm afraid @naosense :/ STDIN by default cannot represent a lot of key combinations we'd like to use, and this is one of them. There are certain protocols http://www.leonerd.org.uk/hacks/fixterms/ that will allow us to bind this and more, but the terminal emulator would have to support this as well (and a lot of them don't, at least not by default). Another option is to read directly from the keyboard and not from STDIN, then we can do whatever we like, but this won't work over SSH (that's what tmux does and it causes a lot of confusion). So... no good solution here I'm afraid. |
AFAIK, kitty's keyboard protocol is the best one out there for supporting special key sequences, way better than the fixterms solution (a nice overview here). Both Helix and Neovim supports kitty's keyboard protocol:
Nushell too: nushell/nushell#10540 Terminals I know that implements it (other than kitty): wezterm, foot and rio. Some more here It's not the most universal thing out there, but it's a very solid protocol with plenty of implementations in the wild. I think it'd be pretty reasonable to support it. |
A week ago, I would have said that I don't think this is true @musjj The threshold for me is always either one of:
But yesterday, Alacritty implemented it: https://github.com/alacritty/alacritty/releases/tag/v0.13.0 So yes, I agree. We should implement support for it. I hope to get to it early this year (2024), no promises though. |
Hi there,
I want to navigate between panes with
Ctrl + Tab
.To do so, I set this in
~/.config/zellij/config.kdl
:(I'm new to the
.kbl
syntax and most of the doc and issues are written for Yaml)Problem
I get the following error when saving the config file and restarting zellij:
I also tried the following syntaxes:
"Ctrl: Tab"
and"Ctrl: 'Tab'"
Note that other keybindings work fine, for example
bind "Tab" { FocusNextPane; }
works perfectly.It seems to be specific to the
Ctrl
+Tab
combination. What am I missing?Technical details
zellij --version
: 0.33.0stty size
: 55 211uname -av
: Linux linux 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linuxgnome-terminal --version
: GNOME Terminal 3.38.3 using VTE 0.62.3 +BIDI +GNUTLS +ICU +SYSTEMDAny hint is welcome, Thanks !
The text was updated successfully, but these errors were encountered: