Don't restore file state if we're just switching to another pane
To do this we have to track the opened file path in the new editor view
and check if it matches the last file path we knew for that view.
author |
Ludovic Chabant <ludovic@chabant.com> |
date |
Thu, 14 Jul 2022 14:36:44 -0700 |
parents |
7975d7c73f8a |
children |
141f0a7d1986 |
rev |
line source |
0
|
1 ## Remember File State
|
|
2
|
|
3 This [Obsidian](https://obsidian.md) plugin remembers the editor state of files
|
|
4 as you switch between them. It restores the cursor position, scrolling position,
|
|
5 and so on. The plugin doesn't do any polling, and strives to only do work when
|
|
6 opening and closing files in order to no slow down the editing experience.
|
|
7
|
|
8 Note that this plugin doesn't currently remember state across sessions.
|
|
9
|