Anti-Ephemeral State

pending

by Ivan Mezentsev

Per-note state persistence: scroll, cursor, and view mode memory.

β˜… 1 starsUpdated 2mo agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

Anti-Ephemeral State for Obsidian

License: MIT GitHub issues plugin downloads Obsidian Downloads GitHub stars

Return exactly where you left off in every Obsidian note - scroll, cursor, view mode.

πŸ“‹ Changelog

For detailed changes, see CHANGELOG.md.

Demo

demo01 demo02

πŸ”§ How it Works

The plugin combats ephemerality by preserving each note's state in separate JSON files, enabling seamless synchronization across devices when Obsidian sync is configured. By storing state data in individual files, conflicts are limited to specific notes rather than affecting the entire database as a whole.

The state is read every time a file is opened and saved half a second after the last changes in the document. This aggressive approach to fighting ephemerality allows you to focus on your work without being distracted by primitive concerns like scrolling to position and remembering the last selected text fragment.

Key benefits:

  • Cross-device synchronization - State files sync with your vault, maintaining consistency across all devices
  • Isolated conflicts - Individual state files limit conflicts to specific notes rather than the entire vault
  • Automatic persistence - State is automatically saved and restored without manual intervention
  • Anti-ephemeral design - Eliminates the temporary nature of view states, preserving your exact working context

πŸ”’ Lock Mode (optional)

Keep notes safe from accidental edits and spot external changes at a glance.

  • Status bar icon: click to Lock ● / Unlock β—‹ the active note. Lock switches it to Reading view and marks it as protected. The icon reflects the current state.
  • Auto-return: if you start editing a protected note, it instantly snaps back to Reading and shows a short notice "Lock Mode enabled".
  • External changes: when a protected note was modified outside Obsidian, a "βœ–" indicator appears with tooltip "File content was modified externally". Clicking it performs the same toggle as the lock icon.
  • Command Palette: the "Lock/Unlock" command mirrors the icon’s action.
  • Settings: toggle "Enable Lock Mode" in plugin settings.
  • Compatibility: works seamlessly with cursor, scroll, and view mode restore.

πŸš€ Installation

From Obsidian Community Plugins

  1. Open Obsidian Settings
  2. Navigate to Community Plugins
  3. Search for "Anti-Ephemeral State"
  4. Install and enable the plugin

Manual Installation

  1. Download the latest release from GitHub
  2. Extract to your vault's .obsidian/plugins/anti-ephemeral-state/ directory
  3. Enable the plugin in Obsidian settings

With BART

  1. Install BART
  2. In Obsidian, open the command palette
  3. Run Brat: Add a beta plugin for testing
  4. Paste ivan-mezentsev/anti-ephemeral-state
  5. BART will install the plugin
  6. Enable the plugin in Obsidian settings

🀝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

For issues or feature requests, visit the GitHub repository.

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ™ Credits

Special thanks to:


Transform your Obsidian experience with individual note state persistence!

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.