Skip to content

Implement relative mark jump (+n/-n) for goMarkNumber#972

Merged
noborus merged 1 commit intomasterfrom
calcmarkindex
Feb 3, 2026
Merged

Implement relative mark jump (+n/-n) for goMarkNumber#972
noborus merged 1 commit intomasterfrom
calcmarkindex

Conversation

@noborus
Copy link
Owner

@noborus noborus commented Feb 3, 2026

  • Add calcMarkIndex to support relative mark navigation (+n/-n) in goMarkNumber
  • Clamp out-of-range indices to 0 or max
  • Rename calculatePosition to calcPosition for consistency
  • Add unit tests for sidebar toggle and goMarkNumber behavior
  • Improve goMarkNumber: handle empty marked list, trim input, clamp index
  • Refactor sidebar message handling for consistency
  • Minor code cleanups and comments

- Add calcMarkIndex to support relative mark navigation (+n/-n) in goMarkNumber
- Clamp out-of-range indices to 0 or max
- Rename calculatePosition to calcPosition for consistency
- Add unit tests for sidebar toggle and goMarkNumber behavior
- Improve goMarkNumber: handle empty marked list, trim input, clamp index
- Refactor sidebar message handling for consistency
- Minor code cleanups and comments
@noborus noborus merged commit 474b583 into master Feb 3, 2026
9 checks passed
@noborus noborus deleted the calcmarkindex branch February 4, 2026 22:34
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