Skip to content
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

Overriding keybinding does not work #3430

Closed
kamilkloch opened this issue Jun 18, 2024 · 4 comments
Closed

Overriding keybinding does not work #3430

kamilkloch opened this issue Jun 18, 2024 · 4 comments

Comments

@kamilkloch
Copy link

kamilk@kamilk:~/.config/zellij$ head config.kdl
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds clear-defaults=true {

...
    shared_except "session" "locked" {
        bind "Ctrl i" { SwitchToMode "Session"; }
    }
...
}

Keybinding appears to be changed in zellij:
Screenshot

But it does not work, and zellij setup --dump-config returns

    shared_except "session" "locked" {
        bind "Ctrl o" { SwitchToMode "Session"; }
    }
@goosethedev
Copy link

goosethedev commented Jun 28, 2024

zellij setup --dump-config dumps the default configuration. What OS are you using? What's the output of zellij setup --check?

Maybe it is colliding with a keybind for your editor or terminal emulator?

@kamilkloch
Copy link
Author

kamilkloch commented Jun 28, 2024

Ubuntu 24.

kamilk@kamilk:~/scripts$ zellij setup --check && echo Check OK
[Version]: "0.40.1"
[CONFIG DIR]: "/home/kamilk/.config/zellij"
[LOOKING FOR CONFIG FILE FROM]: "/home/kamilk/.config/zellij/config.kdl"
[CONFIG FILE]: Well defined.
[DATA DIR]: "/home/kamilk/.local/share/zellij"
[PLUGIN DIR]: "/home/kamilk/.local/share/zellij/plugins"
 Builtin, default plugins will not be loaded from disk.
 Create a custom layout if you require this behavior.
[LAYOUT DIR]: "/home/kamilk/.config/zellij/layouts"
[SYSTEM DATA DIR]: "/usr/share/zellij"
[ARROW SEPARATOR]: 
 Is the [ARROW_SEPARATOR] displayed correctly?
 If not you may want to either start zellij with a compatible mode: 'zellij options --simplified-ui true'
 Or check the font that is in use:
 https://zellij.dev/documentation/compatibility.html#the-status-bar-fonts-dont-render-correctly
[MOUSE INTERACTION]: 
 Can be temporarily disabled through pressing the [SHIFT] key.
 If that doesn't fix any issues consider to disable the mouse handling of zellij: 'zellij options --disable-mouse-mode'
[DEFAULT EDITOR]: mcedit
[FEATURES]: []
[DOCUMENTATION]: zellij.dev/documentation
Check OK

@goosethedev
Copy link

I tried it and yes, Ctrl + i seems to be overridden by the HORIZONTAL TABULATION ASCII signal (9). It does work with other Ctrl keybinds. Don't know if it's a problem of Zellij though...

@kamilkloch
Copy link
Author

Thank you for the hint, I remapped to Ctrl-U and it works fine! (The reason for remapping Ctrl-O is Midnight Commander - Ctrl-O shows/hides terminal underneath).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants