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

feat: new arrow top and arrow bot commands to jump to the top and bottom #2294

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented Feb 5, 2025

This PR deprecates arrow -99999999 and arrow 99999999, replacing them with arrow top and arrow bot, respectively. -99999999 and 99999999 are still available but will trigger a warning.

This change is in preparation for an upcoming navigation wraparound feature — when the cursor reaches the top or bottom of the list, it will automatically jump to the opposite end.

Some users requested this feature, and I initially provided a plugin as a solution. However, I believe it's worth integrating into the core.

The issue is that when users enable this feature, pressing gg or G would cause the cursor to behave erratically since arrow 99999999 would make it loop through the file list multiple times, so top and bot (bottom) are introduced.

@sxyazi sxyazi merged commit e9fcab3 into main Feb 5, 2025
6 checks passed
@sxyazi sxyazi deleted the pr-ba8c9b28 branch February 5, 2025 13:35
macydnah added a commit to macydnah/dotfiles that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant