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.
About This FR
Imo this should be a core feature, since itâs very crucial that Obsidian need to be able to remember scroll position in each tab in some workflows.
More concretely, Workspace and Workspaces plugin should be able 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.
In short:
- Workspaces plugin should be able to store scroll position per workspace per tab.
- If a file opened in different workspaces, scroll position should be stored separately.
- If one file opened in several tabs, scroll position should all be stored separately.
- Should not only support Markdown but also other file format like PDF if possible.
Why This Is Needed
I do think the proper preservation and recovery of the scroll position is of great importance for lots of cases.
Consider reading a several hundred or even thousands pages of PDF on the left and editing notes at the right. Sometimes we also need to open two tabs for this single PDF files because we need to reading different part of it at the same time.
If we save the Workspace layout and close this app, then when we back and re-open Obsidian, found that one tab showing the PDF go back to page 1, or those two different PDF tab now being set to the same page, it will break the whole workflow, we will need to manually locate those PDF tabs back to the position we want.
As described above, inability to store scroll position per workspace per tab could break the whole workflow and the concept of âWorkspaceâ in some cases.
Could you please add the option to resume viewing a file from where you left off? My md files are quite extensive and are basically excerpts from books Iâve read and love to revisit (like quotes, beautiful writing, sharp expressions, new words). I often stop for various reasons and if I donât come back to it soon enough, Obsidian gets cleared from memory, and I have to remember where I paused, which can be tricky sometimes. Also, if itâs possible to have this implemented in the file so that when syncing databases between devices (just for files), the âreading stop pointsâ could sync too.
For those who need this feature: quiet outline 0.5.0 now supports this functionality, recording scroll and cursor positions, as well as the expanded state of headings in the outline panel.
Hello,
Iâve created a small plugin to remember my last scroll position in notes that might be for you as well - hereâs the showcase thread: Plugin: Remember Scrollposition