Hi everyone, I am new to Obsidian - I am struggling with this problem. I have fully updated Obsidian - 1.4.16 and I am using it on desktop.
But I am unable to restore the last position on the document. That is everytime I open a page, it opens at the top of the page as if it had no memory of where I was working last.
As I can see this problem appears resolved, could you please advise as to how to go about activating it? Thank you again
The remember cursor position works in restoring the last cursor but it has a very annoying bug: clicking on a internal link it open the linked file but it put the position to the last stored cursor position instead of the position where the link point to.
So basically, it is very difficult to use it if you rely a lot in internal links in your note.
I tried to dig with the two slider but nothing change so Iām trying to find an alternative⦠hoping that soon it will be an Obsidian core function.
If someone hasnāt already, you can report that bug on the Issues page of Remember Cursor Positionās GitHub (a link to the GitHub is in the top of the pluginās description).
I crosschecked and it was reported in different kinds on, at least, three issues, the most recent is 7 months old. So, I donāt have a lot of confidence in a good resolution for this kind of issue.
Moreover, before it was definitely broken, with respect to the wrong management of internal links, the fix used by the plugin works with it was to introduce a delay to configured manually on each platform.
From my point of view, it is a workaround, not a definitive solution.
I hope that an implementation into the core could allow to avoid this kind of workaround.
I created a plugin and a post that attempts to describe the inteded behavior thatās specific to the view rather than the document/file. Thatās the right approach since the same document can be opened in paralel views with different cursor and scrolling offsets. Hence, itās the view / editor that needs to be persisted.
Documented here:
I also created a plugin that sort of works as Iād like it to work. I was not able to restore the exact scroll position. I tried in several ways, but the API is messy and not documented. So, currently, it restores the scroll to a centered / quasi-centered relative to the cursor position. Itās not ideal, but seems to do the job for me. I typically have 5-10 documents opened.
I havenāt published the plugin yet, as apparently Iām too stupid to release it properly. Itās called āRemember View Stateā, Iāll try to get it done soon. Stay tuned.
This said, I still believe this should be supported in vanilla Obsidian, not as a plugin as itās a bit of a standard application best practice these days to get back to where things were left.
This would be really awesome functionality! Although maybe it would be good as an optional toggle for those who donāt need or want the start-up overhead of restoring document positions after a restart/reload.
Personally, I would use the heck out of this feature if it were implemented.
Adding another comment in support of this feature. I write a lot of notes, and when I jump between long pages, itās jarring to end up at the very top on every back-click instead of the previous cursor position. Itās especially jarring because other text editors already support this and when I work in other editors itās the ānativeā way of handling cross-page navigations.
Iām surprised that after so much time this feature hasnāt been implemented yet. I guess that in the wait for a core solution even a simple plugin could at least save the paragraph where each document was open (saving a simple link would do that thing). I hope a developer would do this kind of plugin.
I suggest to give a chance also to the plugin Typewriter Mode
It implemented it storing the cursor position during writing so it doesnāt have an effect if you just read a note without editing it⦠at least it is what I understood. It seems that doesnāt suffer the deal breaking issue with Remember Cursor Position that ignores the internal links sending the cursor always to the previous stored position even if the file has been opened using an internal link (to an heading for instance).
I hope that one day such kind of feature will find a way into core Obsidian but, in the meantime, this new implementation could be enough for some use cases.
Currently around over 100000 people are using the community plugin Remember cursor position. This is clearly a wanted feature, and is very useful when comparing between notes. Despite some previous threads on the forum I donāt really see a feature request for it (not an active one at least). Looking at the code this appears to be a relatively simple feature to implement, though as with all caching it is not completely trivial.
The problem this would solve:
When comparing notes, it is natural to quickly jump into another note and expect where the cursor was to be remembered. This is the behavior in many code editors as they will open the file in a new tab, so the cursor will remain for the current tab. I currently see no way to opening a note in a new tab by default.
Yes it is possible to open a note in a new tab with Ctrl+lclick.
Proposed solution
I think there are three ways to go here:
Add an option to remember where the cursor was when opening the files in the same tab, like the plugin currently does.
Add an option to open new tabs by default when clicking on a note. Yes ctrl+lclick exists but it is an exception to all other apps I use.
Do both.
Current workaround (optional)
Currently using remember cursor position.
The issue here is that it doesnāt open on the place where the cursor was but visibly jumps to it. Maybe that is a limitation of what plugins can do.
The plugin does more than that, and it remembers cursor position between editor sessions as well, but I donāt think that is very important.
Indeed might be a duplicate, somehow didnāt notice that one. But seeing the mod edit, and the fact that itās true I am even more confused how that feature didnāt end up getting implemented. Itās basically there already.
Iām not personally very surprised because some users prefer to open notes from the start. Hence you are introducing a new option in the settings. But we already have this optionality by using community plugins. The difference is very miniscule.
While community plugins can solve part of the problems, the core functionality should still be there. The plugin isnāt perfect, and has a visible delay( to prevent an unintended scroll after following a link). This is something that wouldnāt be needed if it was in core. Also from a user friendliness perspective, I know many people that would immediately stop using this app because they donāt see the functionality in the core app. Not everyone is ok with spending time looking for community workarounds or asking on discord.