Losing scroll offset when switching between documents is very annoying. Please make this part of the core.
Try this one Cursor position history
. Not many downloads but it works perfectly(++in my ocd opinion).
Iâve even set Alt + <-
and Alt + ->
mappings as the previous and next cursor navigation hotkeys.
Itâs satisfying to have the this default feature on so many editors work on obsidian.
++ Okay, itâs not perfect.
The thing bugs out half the time. Sometimes the navigation and cursor scroll works, sometimes it doesnât.
My use case: I want it to open to the last position it was when I exit and reopen obsidian.
When it doesnât scroll to that I do Ctrl+p
and run reload app
(cursor navigation doesnât work either when thatâs the case).
That gives a kick to the box and it scrolls to the last position.
But still when two or more files are open, it sets the current tab to the right cursor location but resets all other open ones to the start. You can just go to the other tab and do the same and that tab would be scrolled correctly and resets all others. That sucks but still my use case is met, I just want one file to open to the last position and when it fails I just reload and it snaps back to the right position.
Even though it has such flaws, the only reason Iâm sticking with this is because it either scrolls to the ( â˘_â˘)ăŁEXACT.ââşââ§ position or it doesnât. Thereâs no jumps by random offsets that keeps you guessing like with the Remember cursor position
plugin.
The Typewriter Mode plugin also includes this feature now.
Imo this should be a core feature.
Workspace and Workspaces plugin should be above to not only save the info of files and tabs, they should also be able to store cursor position / scroll position of opened files.
And this âPreserve position of an opened viewâ feature should work not only for Markdown files, but also for PDF and other openable files/views in Obsidian.