Skip to content

FEAT: extend cyclic navigation #1237

Description

@mavonx

Is your feature request related to a problem?

The cyclic navigation feature introduced in #1215 was applied to some parts of the TUI, but not all.
Currently, several menus still use bounded navigation.

Describe the solution you'd like

Implement wrap-around navigation for menu selections.

  • Moving upward from the first item should select the last item.
  • Moving downward from the last item should select the first item.

Affected areas (need update):

  • updateMenu in tui/settings.go
  • updateGeneral in tui/settings_general.go
  • updateAccounts in tui/settings_accounts.go
  • updateMailingLists in tui/settings_lists.go
  • updateTheme in tui/settings_theme.go
  • Update in tui/filepicker.go
  • Update in tui/email_view.go

Describe alternatives you've considered

Keeping the current bounded navigation behavior where selection stops at the edges.
However, wrap-around navigation provides a smoother experience and reduces unnecessary input.

Additional context

This issue should be labeled as a good first issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tuiTerminal UI / view layerenhancementNew feature or requestneeds-triageAwaiting maintainer review

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions