Skip to content

feature: add option to cycle top<->bottom of lists of items (e.g. Files view) #4465

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

Open
jessefarinacci opened this issue Apr 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@jessefarinacci
Copy link

jessefarinacci commented Apr 7, 2025

Is your feature request related to a problem? Please describe.

Large change sets can be painful to navigate in menus like [2]Files list, or [3]Branches>branchname>commithash>Diff files, or the [5]Stash>stashid>Diff files set of explorers. Especially if you have an odd tendency to add files in the middle of this list, and need to bounce around the top and bottom of the lists.. ;-)

Describe the solution you'd like

Allow an option, default true, to cycle/wrap at the top of the list to the bottom, and vice versa. I'm using vi & arrow keys to navigate the lists, it'd be great if I hit down when on the bottom it would go to the very first item, if the option were enabled. Etc.

Describe alternatives you've considered

We could possibly use a custom command to jump the top or bottom, but it wouldn't enable the default natural behavior of moving "up" when at the top of a list, bringing cursor to bottom, and vice versa.

Additional context

n/a


Thanks!

@jessefarinacci jessefarinacci added the enhancement New feature or request label Apr 7, 2025
@stefanhaller
Copy link
Collaborator

Are you aware that you can jump to the top by pressing <, and to the bottom by pressing >? On master, you can also use home and end for these, but that's not released yet.

Isn't that enough? I don't quite see why you also need to wrap around using up/down.

@jessefarinacci
Copy link
Author

Isn't that enough? I don't quite see why you also need to wrap around using up/down.

Because my finger is already on the j key? :) I'll not invoke Larry Wall, instead I'll point at other tools that do this like fzf --cycle. Or even lazygit where we will cycle the tabs of different window groups, e.g. 2222 will fully cycle the changes area with loopback.

This feature won't step on toes in an already busy keybinding space either, it just adds more functionality to an existing set of keybindings.

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
None yet
Development

No branches or pull requests

2 participants