xcodebuild / nlinum-relative

Emacs relative line number besed on nlinum-mode
GNU General Public License v2.0
60 stars 9 forks source link

Show numbers, and ignore folded/hidden text? #9

Open auwsmit opened 8 years ago

auwsmit commented 8 years ago

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.

xcodebuild commented 8 years ago

Nice feature idea, I'll try to make it. But I think it's not easy to do with jit-lock.