-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Alter default key-bindings #625
Comments
I have the same issue and I have to browse the code to override the default command: https://github.com/derailed/k9s/search?q=NewKeyAction&unscoped_q=NewKeyAction what could be great is to generated a default hotkeys.yml so we can easily override and add custom commands |
yes and everytime by default I press q I'm dying to put q instead of Esc |
i cant even use the tool because i use tmux ctrl-a as leader.. |
It would be great, for example to be able to use the insert key instead of space key to select items (as in |
It is possible to define custom key bindings in hotKey:
q:
shortCut: q
description: exit
command: quit
Delete:
shortCut: Delete
description: Delete resource
command: delete The first one works like a charm, but I get an error It's also not possible to overwrite existing key bindings that way. |
@derailed are there any plans on implementing this? |
I found a partial workaround for people that have conflicting bindings with other applicaitons like |
Has anyone been successful in binding a different key to I have a hotkeys.yml like:
but I get a "Ruroh?" as well for this, presumably because |
Yeah I have the same challenge with many of the default keybindings in k9s. It would be great if the keyboard commands could be more extensively customized, ideally including chords. One great example is yazi, which has keybindings that can be customized using a toml file that can execute commands either in their API or using lua plugins. It's a very powerful system (somewhat reminiscent of neovim) that would be great to see here. I believe yazi is open source but written in Rust. |
Thanks for this wonderfully useful tool!
Is your feature request related to a problem? Please describe.
Some of the essential key-bindings (such as
Contol-d
to delete a job/pod) conflict with those used in my terminal/TMUX environment, meaning I have to always perform those in another terminal using e.g.kubectl delete pods ...
.Describe the solution you'd like
A way to change the default key-bindings. Looking in the documentation and skimming the source code, I haven't seen a place to do this myself. I am not talking about the hotkeys option; as far as I can tell, they are a separate feature that also shouldn't contain any of the basic key-bindings.
Describe alternatives you've considered
Another YAML file where all keybindings are stored and can be overridden. I am not sure how they are currently implemented, and am not fussy about how a solution may work.
Additional context
The text was updated successfully, but these errors were encountered: