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

Submenu items automatically refresh after any script execution. #11

Closed
aayushrg7 opened this issue Oct 16, 2024 · 1 comment · Fixed by #12
Closed

Submenu items automatically refresh after any script execution. #11

aayushrg7 opened this issue Oct 16, 2024 · 1 comment · Fixed by #12
Labels

Comments

@aayushrg7
Copy link
Collaborator

Description

When a script runs from the sub-menu and completes or exits, returning to the sub-menu by pressing Enter automatically refreshes the selection and moves to the top, instead of staying on the previously selected script.

Environment

  • OS: Arch Linux
  • Shell: Bash
  • Script Version: v3.0.3
  • Terminal Emulator: Alacritty

Script Behavior

After running a script from the sub-menu, the selection refreshes and defaults to the first item in the list, rather than preserving the position of the previously selected script.

Expected Behavior

The selection in the sub-menu should stay on the previously selected script after it completes or exits, instead of automatically moving to the top. This would allow users to continue running scripts or navigating from where they left off without having to scroll back to the original position.

Additional Context

This behavior disrupts workflows where multiple scripts need to be run consecutively, as users are forced to repeatedly scroll back to the previous script. Ideally, the sub-menu should maintain the script's selection position even after execution, providing a smoother experience.
@harilvfs

@harilvfs
Copy link
Owner

Fix this issue in PR #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants