Margin Rail

approvedunreviewed

by march

Turn your note's margin into an interactive map. Navigate long notes, find your place, and explore your content with a customizable scrollspy.

↓ 1,484 downloadsUpdated 15d agoMIT

Margin Rail

A heading rail for Obsidian. See where you are in a long note, preview headings, and jump between sections without opening a sidebar. Works in reading and editing views.

Margin Rail in action

Watch the video

Install

In Settings → Community plugins → Browse, search for Margin Rail, then install and enable it.

Manual installation

Download main.js, manifest.json, and styles.css from the latest release into .obsidian/plugins/scrollspy-rail/ in your vault. Restart Obsidian and enable Margin Rail.

Navigate

  • Hover to preview a heading and its text.
  • Click to jump, or drag along the rail to scroll.
  • Scroll or swipe over a long rail to reach more headings.
  • Bookmark headings from their preview. Requires Obsidian’s Bookmarks core plugin.
  • Keyboard: Tab to the rail, select with arrow keys or Home/End, then press Enter.

Make it yours

Choose a preset, then adjust its shape, colours, labels, placement, and behaviour in Settings → Margin Rail. Try changes in the scrollable preview and save your setup as a preset.

Margin Rail settings

Tracking can follow section length (recommended), heading position, or equal scroll steps. Turn it off to use the rail for navigation alone.

For more control, use CSS snippets or share presets as JSON files. See the customization reference.

On phones

The rail is hidden by default. Enable it under Placement → Visibility → On phones, either in landscape only or in both orientations.

Rail missing?

Check Placement for heading-count, pane-width, and phone visibility settings. You can also run Margin Rail: Refresh rail and show status from the command palette.

Report a problem with your Obsidian version, device, and whether it happened while reading or editing.


Requires Obsidian 1.2.7 or later. Works locally, with no network requests or usage tracking.

MIT · Maintained by Mars-den · Developed with AI assistance.

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.