guopenghui / obsidian-quiet-outline

Improving experience of outline in Obsidian
MIT License
315 stars 17 forks source link

[FR] Option to focus Auto Expand and Heading Highlighting at Cursor position instead of scroll position #84

Closed Glint-Eye closed 5 months ago

Glint-Eye commented 1 year ago

Like the title says, it would be great if there was an option to focus the auto expanding around the cursor position. Usually I am more interested in the position of my cursor and the "scroll off point" to indicate a heading change rarely points to the correct heading i am currently working on.

Another interesting option would be mix of both. Focus on cursor after any kind of cursor position change or input and focus on scroll position after scrolling input.

Thanks for the great plugin though :)

hihihlo commented 1 year ago

+1 : Trace cursor position should be default behaviour rather than scroll position. because all IDE software highlight outline by cursor position.

trace by scroll position is not exact and often no effect. ( show where you're at in outline is the top reason I install outline plugin ^^)

guopenghui commented 1 year ago

all IDE software highlight outline by cursor position

Show some example please. As what I know, typora uses scroll position instead of cursor position.

hihihlo commented 1 year ago

below are some example :

Those software highlight current scope in outline when cursor move between text area, they are very exact. Has a option to decide by scroll position or cursor position will be great !

guopenghui commented 5 months ago

Latest version should fix this issue, so close it.