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

Use Ctrl+Space keybinding #357

Open
PhML opened this issue Apr 24, 2021 · 6 comments
Open

Use Ctrl+Space keybinding #357

PhML opened this issue Apr 24, 2021 · 6 comments
Labels
config Improvements to the configuration system help wanted Extra attention is needed input Issues related to input

Comments

@PhML
Copy link

PhML commented Apr 24, 2021

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?

@a-kenji
Copy link
Contributor

a-kenji commented Apr 24, 2021

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

@SaintFenix
Copy link
Contributor

SaintFenix commented Apr 24, 2021

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.

@rosshadden
Copy link

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.

@imsnif
Copy link
Member

imsnif commented Jan 21, 2022

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.

@Mic92
Copy link

Mic92 commented Aug 1, 2022

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

@LukeCarrier
Copy link

It is currently possible to achieve this by binding Ctrl @, but it seems #3383 finally adds support for Ctrl space directly. This is possible without changes to termion since both keys result in a null byte (\0) in the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Improvements to the configuration system help wanted Extra attention is needed input Issues related to input
Projects
None yet
Development

No branches or pull requests

7 participants