ansible / ansible-navigator

A text-based user interface (TUI) for Ansible.
https://ansible.readthedocs.io/projects/navigator/
Apache License 2.0
389 stars 100 forks source link

vim keybindings for navigation #1136

Open dalston opened 2 years ago

dalston commented 2 years ago
ISSUE TYPE
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 :^)

cidrblock commented 2 years ago

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.

dalston commented 2 years ago

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