Skip to content

feat(jump)!: make dot-repeat jumping separate from regular jumping#2284

Open
abeldekat wants to merge 1 commit intonvim-mini:mainfrom
abeldekat:fix_jump_dot_repeat
Open

feat(jump)!: make dot-repeat jumping separate from regular jumping#2284
abeldekat wants to merge 1 commit intonvim-mini:mainfrom
abeldekat:fix_jump_dot_repeat

Conversation

@abeldekat
Copy link
Member

Resolve #2054

@abeldekat
Copy link
Member Author

I am not sure if the extra tests in 'works after jump in Operator-pending mode' are actually needed, as the behavior of ; has not been changed.
It still reuses the jump from dot-repeat. The motion is only different because dot-repeat itself has been changed.

Copy link
Member

@echasnovski echasnovski left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

The idea and tests overall look good! The large amount of comments is only there because it is possible to focus on little things :)

@echasnovski echasnovski changed the title feat(jump): ensure dot-repeat jumping only reuses jumps from changes feat(jump): ensure dot-repeat jumping does not affect regular jumping Feb 26, 2026
@echasnovski
Copy link
Member

Also, please adjust commit message to fit the new PR title. Dot-repeat is technically not only about changes (yank can be dot-repeated under some circumstances, for example).

@abeldekat
Copy link
Member Author

Also, please adjust commit message to fit the new PR title. Dot-repeat is technically not only about changes (yank can be dot-repeated under some circumstances, for example).

Indeed. However, as I understand this PR, the title should be:

"ensure dot-repeat jumping is not affected by regular jumping"

@echasnovski echasnovski changed the title feat(jump): ensure dot-repeat jumping does not affect regular jumping feat(jump)!: make dot-repeat jumping separate from regular jumping Feb 26, 2026
@echasnovski
Copy link
Member

Indeed. However, as I understand this PR, the title should be:

"ensure dot-repeat jumping is not affected by regular jumping"

It goes both ways. And it is also a breaking change. So updated to be "make dot-repeat jumping separate from regular jumping".

@abeldekat abeldekat force-pushed the fix_jump_dot_repeat branch 2 times, most recently from 968a78c to ab80866 Compare February 27, 2026 07:16

-- If dot-repeating the state needs to be restored after the jump
local state_snapshot
if MiniJump.is_expr and not (MiniJump.state.mode == 'no' and vim.fn.mode(1) == 'nov') then
Copy link
Member

Choose a reason for hiding this comment

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

Why extra check for the forced charwise mode is needed?

Copy link
Member

Choose a reason for hiding this comment

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

@abeldekat, this question was not resolved. This extra check doesn't feel like a good solution to any problem it is meant to solve.

@abeldekat
Copy link
Member Author

I pushed the new commit

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mini.jump] Breaks dot-repeat when jumping between repeats

2 participants