Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TUI mode to use arrows for moving cursor to choose tasks #1564

Open
Andersson007 opened this issue Jun 29, 2023 · 2 comments
Open

TUI mode to use arrows for moving cursor to choose tasks #1564

Andersson007 opened this issue Jun 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Andersson007
Copy link
Contributor

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 Andersson007 added enhancement New feature or request new New issues and PRs to triaged labels Jun 29, 2023
@shatakshiiii shatakshiiii removed the new New issues and PRs to triaged label Jul 6, 2023
@priyamsahoo
Copy link
Contributor

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

@shatakshiiii
Copy link
Contributor

Thanks for mentioning all these tools @priyamsahoo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants