nadavspi/obsidian-relative-line-numbers

Behavior over folds is different from vim

rasmusrhl opened this issue · 0 comments

A relative line number jump in vim jumps the number of actual lines.
This means that 10j will jump 10 actual lines down. If there is a fold in this range, it will jump into the fold.

However, opposite vim, this plugin jumps the number of visual lines.
This means that 10j will jump visible 10 lines down. If there is a fold in this range, it will treat the fold as one line (instead of the actual number of lines within that fold).
Therefore, 10j using this plugin may actually jump, say more than 100 actual lines, if there is fold with 100 actual lines within the 10 visible lines.
Is this the intended behavior?

(thank you for this plugin :) )