Skip to content

feat!: file navigation wraparound with new arrow prev and arrow next commands#2485

Merged
sxyazi merged 2 commits intomainfrom
pr-a3b7fd2c
Mar 15, 2025
Merged

feat!: file navigation wraparound with new arrow prev and arrow next commands#2485
sxyazi merged 2 commits intomainfrom
pr-a3b7fd2c

Conversation

@sxyazi
Copy link
Owner

@sxyazi sxyazi commented Mar 15, 2025

This PR adds new arrow prev and arrow next commands that provide wraparound navigation at list boundaries and sets them as the default key bindings.

This decision is based on the following considerations:

  • It was requested by multiple users in the past.
  • It operates only on a single movement unit (±1), making wraparound navigation more intuitive when continuing to press j or k at the list boundaries.
  • It does not affect the behavior of arrow 5 (multiple units) or arrow 50% (percentage), and the original arrow -1 and arrow 1 commands remain available for the previous behavior.

Doc https://yazi-rs.github.io/docs/configuration/keymap/#manager.arrow

@sxyazi sxyazi merged commit 324a439 into main Mar 15, 2025
6 checks passed
@sxyazi sxyazi deleted the pr-a3b7fd2c branch March 15, 2025 09:44
@sxyazi sxyazi mentioned this pull request Mar 15, 2025
1 task
hankertrix added a commit to hankertrix/augment-command.yazi that referenced this pull request Mar 15, 2025
This will come into effect once the feature has been stabilised,
and the minimum Yazi version for the plugin will be bumped.

Reference:
sxyazi/yazi#2485
@hankertrix
Copy link
Contributor

This should be marked as a breaking change, as the default configuration for <Space> has changed to use wraparound navigation when it previously did not use wraparound navigation.

@sxyazi sxyazi changed the title feat: file navigation wraparound with new arrow prev and arrow next commands feat!: file navigation wraparound with new arrow prev and arrow next commands Mar 27, 2025
Lemi0002 pushed a commit to Lemi0002/yazi that referenced this pull request Apr 10, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants