Skip to content

PaulNoth/logseq-remember-my-block

Repository files navigation

Remember My Block

License: MIT

A Logseq plugin that remembers where you left off. When you reopen a page, it scrolls back to your last block — ready to edit or just to read.


Plugin disabled — navigating back to a page starts at the top:

Plugin disabled

Plugin enabled — navigating back restores your last position:

Plugin enabled


Installation

Via Logseq Marketplace

  1. Open Logseq → Settings → Plugins
  2. Search for Remember My Block
  3. Click Install

Manual

  1. Download the latest release zip from the Releases page
  2. Unzip into your Logseq plugins folder
  3. Enable the plugin in Logseq → Settings → Plugins

How it works

  • Tracks the last visited block per page
  • Restores your position automatically when you navigate back to that page

Modes

The mode is selected automatically based on how you left the page:

  • Edit mode: if you were editing a block, the plugin reopens it for editing and places the cursor at the end of the block
  • View mode: if you were just reading, the plugin scrolls to the block and highlights it without entering edit

Known limitations

Very long pages are not supported. Logseq lazy-loads blocks on long pages, so a block that hasn't been rendered yet cannot be scrolled to or focused. The plugin will silently do nothing in that case.

Journal pages have partial support due to Logseq API limitations:

  • Specific journal page (reached by clicking a date link): position is restored normally
  • Main Journals view: NOT SUPPORTED — Logseq does not expose which journal page is currently active

Storage

The plugin tracks the last visited block for up to 50 pages. Revisiting a page updates its entry in place. When the limit is reached, the least recently visited page is dropped.

Note: Stored positions are kept in memory and cleared when you close the app.

Note: The 50-page limit is in place to observe Logseq performance and may change.


Development

Prerequisites: Node.js

npm install      # install dependencies
npm dev          # start dev server with hot reload
npm build        # build for development
npm prod         # build for production

Feedback & Improvements

Found a bug or have a feature request? Open an issue on GitHub — all feedback is welcome.


License

MIT © Pavol Pidanič

About

Reopen pages at the block you last edited or viewed, instead of at the top.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors