Remember Restore last document position / scroll position / cursor position

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

Community plugins > Install/Update Remember Cursor Position?

Thank you :slight_smile:

It seems doesn’t work

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).

1 Like

Are you really only using a keyboard? If there’s a technical reason for this, could you share it?

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.

1 Like

This really should be a native feature now that there is a web clipper. It is annoying to try and remember where I left off a long article.

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.

3 Likes

Use case or problem

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:

  1. Add an option to remember where the cursor was when opening the files in the same tab, like the plugin currently does.
  2. 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.
  3. 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.

Possible duplicate

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.

2 Likes