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

TUI mode to use arrows for moving cursor to choose tasks

Open Andersson007 opened this issue 1 year ago • 2 comments

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:

  1. You press a special button
  2. The cursor appears at the first item (currently with number 0)
  3. The arrows on keyboard can now be used to move the cursor
  4. You can press Enter to run the task the cursor at

Andersson007 avatar Jun 29 '23 05:06 Andersson007

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

priyamsahoo avatar Jul 31 '23 14:07 priyamsahoo

Thanks for mentioning all these tools @priyamsahoo :)

shatakshiiii avatar Aug 03 '23 12:08 shatakshiiii