-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
Feature request regarding Ctrl-Q #1229
Comments
Great. I found this comment in #467: "Also on other "terminating" operations, like "tab close" and "pane close". I can confirm this. It is not a normal workflow that you want to close a tab. Normally such thing only happens by accident. So it would be good to have also this protection for tabs and panes. |
I do sometimes want to close many panes quickly. Maybe we add a confirmation for closing a tab/pane, and also add a "force close" shortcut (eg. |
I usually close zellij by closing the shell with Ctrl + D, I'm guessing that will remain without confirmation? |
Yes, since that isn't an action. |
There's also not a lot we can do about this, tbh. We only intercept keys to the shell if they correspond to one of our UI actions. This is an internal shell thing - for one shell it can be ctrl + d, for another it can be something else. |
I feel like using a "double key" could solve the problem: The first If you really want to close something, it is easy to get the double keypress into muscle memory, while inadvertently pressing the close combination twice seems unlikely. This should also play nice with key remapping. |
Since it wasn't mentioned already, it is totally possible to remap the offending actions to keys that are more difficult to hit by accident or remove the mapping altogether: |
I am a micro user (where CTRL-Q is the way to quit the editor) and re-mapping zellij's quit action to Alt-Q has effectively solved this annoyance for me. |
Thanks for this idea @raphCode. I have solved my long standing issue that always bugs me.
|
Mhh, so should we close this? Or add a hint to the documentation? |
I have tried this now and it works for me. But this is not exactly what I want. How can I create a key binding with a combination of two keys? I have tried this and it does not work. zellij closes as soon as I enter Ctrl-b.
This also does not work as combination:
And this gives an error message when starting zellij:
|
I've worked around it by moving the keybnding for Quit from the |
I am new to Zellij and I already hit the ctrl-Q problem. When using ctrl-Q for Quit, it should be "normal" to show other possibilities like: "quit", "detach", "lock" or "cancel". I mean "by default", without messing with the key bindings. |
Hello there Changed
To
Added
To
|
fyi: I created a plugin to add a confirmation prompt before killing your session: it's intended to replace the |
Since I have now accidently used "Ctrl-Q" many times I would like to ask whether there can be done something preventing this.
Maybe a more complicated action or some question whether you really want to do it.
Closing everything is nothing I normally do intend to do so it would be good to change this.
The text was updated successfully, but these errors were encountered: