zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.47k stars 637 forks source link

Allow for `Alt-Space`, `Ctrl-Space`, `Ctrl-Tab` bindings #2626

Open TheSast opened 1 year ago

TheSast commented 1 year ago

As suggested to me on the Zellij discord server I used the plugin zellij-echo to check which keypresses where correctly seen by Zellij and to try and use those.

That plugin show that it is possible to use Alt-Space and Ctrl-Tab, it also shows how Ctrl-Space is interpreted as nul value 18h 20m 57s  wezterm-gui_s6qo9 18h 25m 55s  wezterm-gui_KRsbr

Yet it is not possible to bind those keys inside the Zellij config file 18h 44m 50s  wezterm-gui_vSY1b

Space is a pretty commonly user set prefix / leader key is some programs (e.g. vim) as such a modified version of it makes sense as a replacement for the terminal multiplexer, thus not having the option to use Alt-Space or Ctrl-Space can be a hurdle to muscle memory.

cronyakatsuki commented 12 months ago

Today I installed zellij and tried to go ahead and bind ctrl + space as my prefix key to use it like how I use tmux, but because of this limitation it seems that zellij is going to be unused for me personally right now.

lentil32 commented 10 months ago

(Ac hoc solution) In zellij, I binded something to "F11" and in terminal(Alacritty for me), mapped "Ctrl + Space" to "F11". it works

# alacritty.yml
- { key: Space, mods: Control, chars: "\x1b[23~" }