wolray / symbol-overlay

Highlight symbols with keymap-enabled overlays
346 stars 42 forks source link

Highlight even when there are occurrences outside of the visible window #33

Closed Wilfred closed 5 years ago

Wilfred commented 5 years ago

I've found it confusing that symbol-overlay-mode doesn't highlight the symbol if the other occurrences aren't visible.

This was a feature I loved with highlight-symbol-mode -- I could see if a function was used by just by putting point on it.

Is this intentional, or can it be configured? I can see a mention of this behaviour in the docstring of symbol-overlay-maybe-put-temp.

Wilfred commented 5 years ago

Perhaps this could be another value for the variable symbol-overlay-narrow, or a new variable? This would need to affect the behaviour of symbol-overlay-narrow.

wolray commented 5 years ago

Yes, it was intentional since it could be a little bit slow when continusly detecting occurrences in a large buffer. But i will still add a variable to toggle this feature. Maybe next weekend. Thanks.

wolray commented 5 years ago

Hey. The feature is added. Check the newest version after next melpa build. The control variable is named as symbol-overlay-displayed-window and set as t by default.