Free Obsidian plugin
Hybrid Line Numbers
Relative and hybrid line numbers for Vim-style jumps. A folded section counts as one line, and numbers can turn absolute in Vim insert mode.
Install from the Obsidian directory Open in Obsidian Source code and issues
What it does
Relative and hybrid line numbers for Obsidian's editor, for anyone who moves with Vim counts such as 5j or 12dd, or just wants to see how far away a line is.
_The cursor is on line 12. Every other line shows how far away it is, and the folded "Day one" section counts as one line, so 3k lands on it._
Highlights
- Hybrid (the default): the real line number on the cursor line, the distance to the cursor on every other line.
- Relative:
0on the cursor line, the distance everywhere else. - Absolute: plain line numbers.
- A folded section counts as one line, which is how Vim counts a jump, so the number next to a line is always the count that reaches it.
- Absolute numbers in Vim insert mode (optional): relative numbers while you move around, line numbers while you type, like Vim's popular "number toggle" setup.
- In a Vim visual selection the numbers follow the cursor, not the other end of the selection.
- Select lines from the numbers, like a code editor: see below.
Details
- Version
- 0.3.0
- Needs Obsidian
- 0.15.0 or newer
- Platforms
- Desktop and mobile
- Author
- Siulved54
- Price
- Free and open source