ansible-navigator
ansible-navigator copied to clipboard
TUI mode to use arrows for moving cursor to choose tasks
FYI i asked for the answer in DevTools matrix channel first. As i got no response, I guess there's no solution to the issue, so opening it here.
ISSUE TYPE
- Feature Idea
SUMMARY
I didn't find any way in ansible-navigator's TUI not to type numbers of tasks but use arrows or something else to choose a task using a kinda cursor.
So far it's really inconvenient unless you're a num keys guru. Especially on keyboards with no separate num section in the right..
An example of similar python-based tool is pg_activity which allows to use arrows for cursor moving and it's super cool:)
if it's not supported, it'd be nice to have the following to preserve backwards compatibility:
- You press a special button
- The cursor appears at the first item (currently with number 0)
- The arrows on keyboard can now be used to move the cursor
- You can press Enter to run the task the cursor at
A couple of tools that I have used which can be used as inspiration are: yarn upgrade-interactive
and ncu --interactive
.
And the Python packages that can be used are click (preffered) and PyInquirer. We can also look into other tools that have these kinds of interaction capabilities from https://github.com/shadawck/awesome-cli-frameworks#python
Thanks for mentioning all these tools @priyamsahoo :)