ansible-navigator icon indicating copy to clipboard operation
ansible-navigator copied to clipboard

vim keybindings for navigation

Open dalston opened this issue 3 years ago • 2 comments
trafficstars

ISSUE TYPE
  • Feature Idea
SUMMARY

Apparently my brain gets confused because I can use a "colon mode" but can't navigate using j/k/l/h/ctrl+f/ctrl+b or search what is on the screen with "/" and "n" and "p".

It would be quite awesome if I could override the keybindings for up/down/left/right to match vim's keybindings. Even better if I could just enable "vi-mode" :^)

Also, adding the ability to search or grep the menus and text that are displayed would be a great usability bonus. Searching with "/" would highlight the search wherever it shows up on the screen as I type it. Searching with "g" would filter the list/file/whatever-is-being-displayed to only show the lines that match the regex.

The first part (basic vim navigation keybindings) is definitely the easiest part of this feature request to implement :^)

dalston avatar Mar 23 '22 19:03 dalston

Hey @dalston

Thanks for this, many of the keys are hardcoded into the app itself, so what really needs to happen is they need to be pulled out into the user config.

We are racing to get the 2.0 version out the door, and will probably add all or part of this to the next release since it's something we've wanted to have for a long time.

I'll hold onto this issue and track it.

cidrblock avatar Mar 30 '22 11:03 cidrblock

Thanks, @cidrblock and @ganeshrn! Ansible Navigator is pretty neat! Thanks for improving it even more! :^)

dalston avatar May 03 '22 13:05 dalston