Skip to content

fix(tui): add cyclic navigation#1216

Merged
andrinoff merged 1 commit intofloatpane:masterfrom
HassanFouad:fix/issue-1215
May 3, 2026
Merged

fix(tui): add cyclic navigation#1216
andrinoff merged 1 commit intofloatpane:masterfrom
HassanFouad:fix/issue-1215

Conversation

@HassanFouad
Copy link
Copy Markdown
Contributor

What?

  • Updated the Update function in tui/choice.go to modify the cursor navigation logic.
  • Implemented wrap-around (cyclic) navigation for the up and down keybindings, allowing the cursor to loop seamlessly through the choices.

Why?

  • Currently, menu selection stops when reaching the first or last item, requiring users to reverse direction to navigate the list.
  • Implementing wrap-around navigation solves this problem. Now, moving upward from the first item selects the last item, and moving downward from the last item selects the first item.
  • This provides a smoother, more natural navigation experience and reduces unnecessary input keystrokes.
  • closes FEAT: add wrap-around navigation for menu selection #1215

@HassanFouad HassanFouad requested a review from a team as a code owner May 2, 2026 18:30
Copy link
Copy Markdown
Member

@floatpanebot floatpanebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HassanFouad! Please fix the following issues with your PR:

  • Title: Is too long (55 characters). The PR title must be strictly under 40 characters.

@github-actions github-actions Bot added the bug Something isn't working label May 2, 2026
@HassanFouad HassanFouad changed the title fix(tui): add wrap-around navigation for menu selection fix(tui): add wrap-around navigation for menu May 2, 2026
Copy link
Copy Markdown
Member

@floatpanebot floatpanebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HassanFouad! Please fix the following issues with your PR:

  • Title: Is too long (45 characters). The PR title must be strictly under 40 characters.

@HassanFouad HassanFouad changed the title fix(tui): add wrap-around navigation for menu fix(tui): add cyclic navigation for menu May 2, 2026
Copy link
Copy Markdown
Member

@floatpanebot floatpanebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HassanFouad! Please fix the following issues with your PR:

  • Title: Is too long (40 characters). The PR title must be strictly under 40 characters.

@HassanFouad HassanFouad changed the title fix(tui): add cyclic navigation for menu fix(tui): add cyclic navigation May 2, 2026
@floatpanebot floatpanebot dismissed stale reviews from themself May 2, 2026 18:36

Formatting issues have been resolved. Thank you!

@andrinoff
Copy link
Copy Markdown
Member

@Haroka-74 , are there any more choices that need to have cycle movement?

@mavonx
Copy link
Copy Markdown
Contributor

mavonx commented May 2, 2026

@andrinoff

Yes, there is also the settings menu that should have the same cyclic navigation behavior.
@HassanFouad will handle that as well and push another commit.

@andrinoff andrinoff merged commit 309db4d into floatpane:master May 3, 2026
30 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEAT: add wrap-around navigation for menu selection

4 participants