derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
26.78k stars 1.68k forks source link

Allow changing default keybindings #1391

Open cycloss opened 2 years ago

cycloss commented 2 years ago

Is your feature request related to a problem? Please describe. I don't like being forced to use the default keybindings.

Describe the solution you'd like In hotkey.yml I'd like to be able to unbind default keybindings so I can rebind them. For example, I'd like to be able to change p to show pods, but I can't because it is by default set to show previous logs or something. I tried changing it to Shift-n but that seems to be reserved for sorting by name. I don't know where it even lists this as a keyboard shortcut. There are other shortcuts I'd like to rebind, but I hope you get the picture.

nleconte-csgroup commented 2 years ago

I agree, I want to unbind the ctrl-d and ctrl-k commands.

akhil-amagi commented 1 year ago

Is there any solution for this?

merikan commented 1 year ago

It would be awesome if it was possible to remap the default keys. My current key-binding, jumping between panes and windows in tmux and vim, is Ctrl-[h,j,k,l]. This means that I sometimes act like a chaos monkey killing some random pods now and then.

thibaud-lumapps commented 1 year ago

+1 The TUI is unusable when using non-hjkl keyboards layouts; The fact that k9s looks so awesome makes it a pain not to use it.

chris-metz commented 5 months ago

+1 for this. Working in a tmux environment where CTRL-A is the default tmux prefix.

aresler commented 3 days ago

+1

Vim keybindings as a first-class citizen, but ctrl-d deletes a pod? Kinda arguable. Ctrl+k kills a pod without confirmation? Interesting approach 😕 Almost like saying "Please don't use k9s in production"

Also, I'm using Ctrl+space to switch keyboard layouts, making range selection unavailable to me.

So, it would be nice to remap the default shortcuts.

mwarkentin commented 3 days ago

After the incident caused by this, I started running k9s in readonly mode by default which removes most of the potential for further footguns.

Of course sometimes I need to do something that requires write access so it becomes possible again during that window.