k9s
k9s copied to clipboard
q key binding to Back

Is your feature request related to a problem? Please describe. I'm always pressing q to go back instead of Esc Don't know from where I'm used to this
Describe the solution you'd like Pressing q to go back instead of Esc and if you already at first level (for example pod view) Pressing q again would bring up the context menu Pressing q again would exit
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context This will super speed the navigation IMHO
Right now I'm doing it with xdotool
and this Plugin 😅
plugins:
GoBack:
shortCut: q
description: "Go Back"
scopes:
- all
command: xdotool
background: true
confirm: false
args:
- key
- Escape
BTW the plugin Idea is perfect and beyond !
I came here to add this feature request. Please, binding 'q' in addition to 'Esc' to Back would make the flow much easier.
I'm also constantly hitting the q key. Would be really nice to have the option to reassign keys / shortcuts.
@derailed I've seen that there's already a HotKeys config. So if it's easier to just add a custom command to go back, then we could remap it.
Thanks for your great work!
@derailed I totally understand if you don't have the time for this. But could you please lead us in the right direction so that we can do it ourselves?
Thanks heaps mate!
@derailed Implementing everything currently hard-coded(?) as commands would solve this and many other open issues.
I too came here looking for a way to make q work like Esc.
I'm also wishing I could add a hotkey to "set the filter to ____." but it would seem there is no "filter" command, nor any "set" command.
Anyone ever make progress on this? I've tried using hotkey.yaml
to get this done, but not sure I'm holding it right or if its even possible to bind something to Back
:
hotKey:
q:
shortCut: q
description: Go back
command: Back
I've also tried the command as Back/Clear
, because thats what the ?
shows as the command for <esc>
. Any other tips? I'd rather not have to use app-specific terminal rebinds to accomplish this, so I guess that's always an option
I actually made a quick and dirty fork to replace esc by q (which I use every day): https://github.com/piec/k9s It should be made configurable to be integrated but didn't find the time to do it