This Obsidian plugin remembers the editor state of files as you switch between them. It restores the cursor position and scrolling position. By default, it also remembers these states across sessions by saving the data to disk.
This plugin doesn't do any polling and doesn't register any timers. It strives to only do work when opening and closing files in order to not slow down the editing experience.
My own workflow for working on this plugin is the following:
npm run dogfood /path/to/vault/.obsidian/plugins/obsidian-remember-file-state.
Ctrl-Shift-I to open the developer console and see the