Restore last document position/scroll position/cursor position

This feature is a really convenient one, especially when the md file is large. Upvote!

Thank you @derwish for the amazing plugin. I was wondering if it could be made to remember the horizontal scroll position in addition to the vertical scroll position. I’ve opened a new issue on github.

1 Like

Use case or problem

I process most of my stuff from obsidian mobile using one file, adding new lines to the bottom. Every time I reopen obsidian, it takes me to the top of that file, whilst I’d prefer to be taken to my original location within the file.

Proposed solution

Remember scroll location when closing the workspace

4 Likes

When I go from preview mode to edit mode the scroll location is not in one place. This actually causes a lot of trouble in the case of long notes.

2 Likes

Not sure if you’ve solved this, but there’s this plugin for the PC version, I don’t know if it works on mobile:

It doesn’t always work, but when it does, it’s pretty cool :slight_smile:

1 Like

Sometimes when I’m repeatedly switching between notes, I would prefer to maintain my scroll position in each note. It becomes tedious to scroll back down and find my previous position each time. Is it possible to implement this as a setting?

Related: same request except for the Outline plugin: Remember Outline scroll position when switching focus between notes

1 Like

The plugin Remember cursor position does exactly that.

I noticed that switching between notes (even quick back and forth) looses editor position in the note AND undo history.

Both are critical for the application that doesn’t support multiple tabs (as switching between notes is the only way of looking something up and referencing).

mod note: edited this post to focus on remembering position. There is another request for undo history already: Remember recent undo-redo history for each recently opened note

26 Likes

Use case or problem

We often need to edit docmument in the last closed position, but currently the position always on the top when re-open it.

Proposed solution

without scroll down again and remember the last closed position in document.

Current workaround (optional)

Potplayer.
image

3 Likes

How to remember the text insertion position of the editor when switching different files?

Just like the mechanism of browser tab.Visual Studio Code also enables this feature by default.

CTRL + O can’t remember the insertion position or reading position of the editor , and cannot switch to an open page.

Split screen function is limited,there is usually no way to open multiple pages, because it will take up the screen space.

I know that some tabs can be stored in the sidebar, but switching seems to be a problem. It seems that you can only open the sidebar, find the corresponding page, and then drag it. This method is inefficient.

Ctrl+Alt+Left/Right is a good choice for two documents, remembering where to edit, which can cover a lot of situations, but for heavy horizontal editing, which still requires several Windows open, this mechanism is not so good, because it can’t search through the history.

Although in some cases remember where the text is inserted doesn’t help, at least it doesn’t make things worse, so it may be a Pareto improvement.

Visual studio code has such a function, which should be the result of weighing rather than doing it at will.

Two plug-ins(Workbench and sliding-panes) are known to help with this problem, but the problem is far from solved.

The urgent need for this function has also been mentioned on the forum.

If you want this feature, can leave a message below to express your support ! :fist:

5 Likes

I need the feature!

2 Likes

I want it too, hope this feature to be implemented soon.

1 Like

I need the feature!

1 Like

Partial workaround:

(works but is not sufficient to fulfill scope of this request)
Position of caret is preserved when we switch between files open side-by-side, by hotkeys.

I utilize Single key hotkeys with Cycle through panes (plugin) in Sliding panes / Andy mode plugin which makes it usable to work with multiple panes open side-by-side.

The following allows to preserve caret position when switching by mouse instead of hotkeys and/or between distant panes (works from https://forum.obsidian.md/t/obsidian-release-v0-10-13/12492):

Pressing Tab after typing in the file name bar should also focus on the editor.

3 Likes

I would like this feature too. This is such a killjoy when dealing with multiple open notes.

1 Like

At present, I have found a temporary solution to this problem.

You need to use the Switch++ and Sliding Panes plugins, which work together.

Of course, there are still a problems.

Due to the function of sliding panel, the left and right split screen function can’t be used.

These two functions are very important to me, it’s really hard to choose.

Use case or problem

Most great editors remember the cursor location when closing file, and restore it when re-opening it. This helps mental continuity in note taking.

Proposed solution

Save and restore cursor location. Possibly, make this toggle-able in settings for users who don’t want it.

Related feature requests (optional)

Option to go to end of file upon opening is related, but cursor-restore is even better.

Related thread.

BTW, Obsidian is insanely awesome for many reasons. Thank you for making it!

4 Likes

+1, without this function it is very difficult to work with more than one page on the screen

1 Like

+1 also. Things like this are frustrating from a UX standpoint.

Persistent Undo
Restore cursor position