You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements goto_next() and goto_previous() navigation.
These functions allow programmatic navigation between marks without relying on the UI picker or static keybindings.
They use the closest mark within the current file as the current reference position and apply wrap-around navigation when reaching the start/end of the list. This enables plugin authors and advanced users to build custom navigation workflows and integrate marksman’s mark navigation into other tools.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Vim's built-in marks are great, but they're global and get messy fast. Marksman
20
20
-**Persistent storage** - Your marks survive Neovim restarts with automatic backup
21
21
-**Smart naming** - Context-aware auto-generation using Treesitter and pattern matching
22
22
-**Quick access** - Jump to marks with single keys or interactive UI
23
+
-**Sequential navigation** — Jumps relative to the nearest mark in the current file. If the current file has no marks, next jumps to the first mark and previous jumps to the last.
23
24
-**Enhanced search** - Find marks by name, file path, or content with real-time filtering
24
25
-**Mark reordering** - Move marks up/down to organize them as needed
25
26
-**Multiple integrations** - Works with Telescope, Snacks.nvim, and more
@@ -238,6 +239,8 @@ local marksman = require("marksman")
0 commit comments