k9s icon indicating copy to clipboard operation
k9s copied to clipboard

q key binding to Back

Open arash-bizcover opened this issue 4 years ago • 9 comments




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

arash-bizcover avatar Aug 11 '20 05:08 arash-bizcover

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 !

arash-bizcover avatar Aug 11 '20 06:08 arash-bizcover

I came here to add this feature request. Please, binding 'q' in addition to 'Esc' to Back would make the flow much easier.

deviantthread avatar Oct 04 '20 06:10 deviantthread

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!

mamiu avatar Aug 26 '21 04:08 mamiu

@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!

mamiu avatar Aug 19 '22 06:08 mamiu

@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.

cpriest avatar Aug 19 '22 22:08 cpriest

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

matthewgrossman avatar Oct 31 '23 03:10 matthewgrossman

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

piec avatar Oct 31 '23 09:10 piec