Remember File State
approvedby Ludovic Chabant
Remember cursor position, selection, scrolling, and more for each file.
Remember File State
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.
Developer Quickstart
My own workflow for working on this plugin is the following:
- Install the "Remember File State" plugin in a test vault. Don't forget to enable it.
- Clone the
obsidian-remember-file-staterepository. - Run the usual incantations, such as
npm install. - Run the build process in watch mode so that it compiles the TypeScript code
and overwrites the test vault's plugin:
npm run dogfood /path/to/vault/.obsidian/plugins/obsidian-remember-file-state. - When making changes, trigger the "Reload App Without Saving" command to reload Obsidian.
- Optionally, hit
Ctrl-Shift-Ito open the developer console and see the console log.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.