zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Use `Ctrl+Space` keybinding

Open PhML opened this issue 3 years ago • 6 comments

Information

zellij --version: 0.5.1

I tried to bind lockmode to Ctrl+space like this in the config file:

- action: [SwitchToMode: Locked,]
  key: [Ctrl: ' ',]

but it doesn’t work.

Is it a termion issue?

PhML avatar Apr 24 '21 12:04 PhML

Thank you for the issue! This is definitely worth investigating! I wish that were possible as well.

Is it a termion issue?

I believe so, but I am not sure.

For investigation: https://gitlab.redox-os.org/redox-os/termion/-/issues/169 https://gitlab.redox-os.org/redox-os/termion/-/issues/16 https://gitlab.redox-os.org/redox-os/termion/-/merge_requests/175

a-kenji avatar Apr 24 '21 15:04 a-kenji

I've noticed this issue myself, in my Pull Request #362, I wasn't able to bind in a similar manner these keys:

- action: [Resize: Up,]
   key: [Ctrl: 'Up',]
- action: [Resize: Down,]
   key: [Ctrl: 'Down',]
- action: [Resize: Left,]
   key: [Ctrl: 'Left',]
- action: [Resize: Right,]
   key: [Ctrl: 'Right',]

It seems as though any non-alphanumeric keys, do not combo properly in the current setup.

SaintFenix avatar Apr 24 '21 23:04 SaintFenix

Does anybody have a workaround for this? I understand the problem lies in a library used, but if there's anything anybody has gotten to work that bypasses or mitigates the problem in user-land it would be very much appreciated.

rosshadden avatar Jan 20 '22 20:01 rosshadden

Does anybody have a workaround for this? I understand the problem lies in a library used, but if there's anything anybody has gotten to work that bypasses or mitigates the problem in user-land it would be very much appreciated.

Maybe you can look into binding a key in your terminal emulator? Eg. if you can get Alacritty to bind ctrl+space to ctrl+y (or some such) maybe it'll work out like that.

imsnif avatar Jan 21 '22 09:01 imsnif

In the foot terminal this option might do the job the text-bindings option would allow this.

Mic92 avatar Aug 01 '22 07:08 Mic92