nlinum-relative
nlinum-relative copied to clipboard
Show numbers, and ignore folded/hidden text?
This is more of a question (or possibly feature request) than an issue.
I use Evil-mode, and I use relative line numbers so that I don't have to count line numbers. I glance at the line I want, see its line number distance, and jump there with 10j
(if it were 10 lines down) for example. However, this doesn't work when I have anything folded in the buffer view, because nlinum-relative
is counting the hidden lines.
I think it would be nice to have an option to ignore hidden text for cases like this. HideShow
and org-mode
are the only ways that I know of to hide text, and both cause this same effect.
Nice feature idea, I'll try to make it. But I think it's not easy to do with jit-lock
.