No description
Find a file
2026-07-15 03:00:38 +00:00
.github/workflows ci: auto-bump version and release on merge to master 2026-06-29 04:04:37 +03:00
.gitignore store cursor position in edit mode 2021-03-10 22:51:10 +03:00
LICENSE Update LICENSE 2022-01-09 18:21:11 +03:00
main.ts Fix cursor position not saving on first visit and improve README 2026-07-11 16:47:18 +02:00
manifest.json chore: bump version to 1.0.13 [skip ci] 2026-07-15 03:00:38 +00:00
package.json chore: bump version to 1.0.13 [skip ci] 2026-07-15 03:00:38 +00:00
README.md fix: update repository URLs in README to point to dy-sh repository 2026-07-14 13:52:51 +02:00
rollup.config.js Initial commit 2021-03-10 22:44:50 +03:00
tsconfig.json feat: add modified timestamp and pruning logic 2026-04-22 18:14:05 -07:00
version-bump.mjs ci: auto-bump version and release on merge to master 2026-06-29 04:04:37 +03:00
versions.json chore: bump version to 1.0.13 [skip ci] 2026-07-15 03:00:38 +00:00

Remember Cursor Position

An Obsidian plugin that remembers the cursor position, scroll position, and text selection for each note.

Features

  • Cursor position — returns to the exact line and column you were editing
  • Scroll position — restores where you were scrolled to in the document
  • Text selection — preserves any selected text when reopening a note
  • Edit & Preview modes — works in both editing and reading views
  • Persistent storage — positions are saved to a JSON file (configurable path) and survive app restarts
  • Smart restoration — avoids unwanted scrolling when opening links that target a specific section (#header links)
  • Configurable defaults — choose what happens when no saved position exists: go to beginning, end, before footnotes, or do nothing
  • Pruning — optionally remove entries for deleted files, old entries by age, or cap the total number of stored positions

How it works

Each time you move the cursor or scroll in a note, the plugin records that state. When you come back to the same note (even after closing and reopening Obsidian), it restores your exact position and selection. This makes navigating between notes seamless — no more manually scrolling to find your place.

Installation

From Obsidian Community Plugins

  1. Open SettingsCommunity plugins
  2. Disable Restricted mode (if enabled)
  3. Click Browse and search for "Remember Cursor Position"
  4. Install and enable the plugin

Manual installation

  1. Download the latest release from the releases page
  2. Extract the files into your vault's .obsidian/plugins/remember-cursor-position/ directory
  3. Enable the plugin in SettingsCommunity plugins

Settings

Setting Description
Default cursor position What to do when no saved position exists for a file (Beginning / End / Before footnotes / Default — do nothing)
Data file name Path to the JSON file where positions are stored
Delay after opening a new note Prevents unwanted scrolling when opening links with section anchors
Delay between saving How often the position database is written to disk
Remove entries for deleted files Prune positions for files that no longer exist in the vault
Remove entries older than Automatically discard positions not updated within the selected period
Maximum number of entries to keep Limit the database size by keeping only the most recently visited files

Support

If you find a bug or have a feature request, please open an issue.