Notion TOC

unlisted

by Tanish Vijay

A Notion-style table of contents: a slim rail of ticks on the right edge of every note that expands into an indented heading sidebar on hover, with smooth scroll gliding.

Updated 1mo agoMIT
View on GitHub

Notion TOC for Obsidian

Obsidian Plugin Latest Release License: MIT Platforms GitHub Pages

A sleek, zero-clutter, Notion-style table of contents rail for Obsidian notes.

A slim rail of ticks sits quietly on the right edge of your note. Tick length reflects heading depth, and the tick for the section you're reading dynamically illuminates. Hover over the rail, and a responsive sidebar slides out showing the full outline with nested indentation. Click any item to jump instantly.


๐Ÿ“ธ Visual Overview

1. Minimal Tick Rail (Reading Mode)

A distraction-free rail on the far right edge showing your outline structure and scroll position at a glance.

Notion TOC Rail Ticks

2. Smooth Hover Sidebar (Interactive Navigation)

Hover over the rail to smoothly expand the full table of contents with hierarchy, active section highlight, and single-click jumping.

Notion TOC Hover Sidebar


โœจ Features

  • ๐ŸŒŠ Smooth scroll gliding (v2): Clicking any heading or rail tick glides smoothly into view with an organic cubic ease-out curve. Animation duration dynamically adapts to hop distance, and any user scroll gesture (wheel, touch, or key) immediately cancels the glide.
  • ๐ŸŽฏ Always visible, never in the way: A minimalist tick rail pinned to the right edge. Ticks indicate relative heading levels (H1โ€“H6) without consuming workspace width.
  • โšก Hover to expand: Hover anywhere on the rail to reveal the full table of contents sidebar.
  • ๐Ÿ“ Live active section: Real-time position tracking illuminates your current reading section on both the rail and the expanded sidebar.
  • ๐Ÿš€ Click-to-jump: Instant smooth navigation to any heading from either the rail ticks or sidebar entries.
  • ๐Ÿ“ Works in all view modes: Seamless across Reading view, Live Preview, and Source mode. Automatically updates as you type.
  • ๐ŸŒฒ Clean hierarchy handling: Handles skipped levels gracefully (e.g. an H1 followed directly by an H3 indents cleanly without phantom whitespace).
  • ๐Ÿงผ Markdown & Wikilink stripping: Strips raw markdown syntax, HTML tags, highlights, and wikilinks so heading labels stay clean and legible.
  • ๐ŸŽจ Adaptive Obsidian theming: Inherits native CSS variables to automatically match your light or dark theme and custom accent colors.
  • ๐Ÿ“ฑ Mobile & tablet ready: Tap the rail on mobile to open the sidebar, tap outside to dismiss.
  • ๐Ÿ–จ๏ธ Print & export safe: Automatically suppressed when printing or exporting notes to PDF.

๐Ÿ“ฅ Installation

Method 1: Obsidian Community Plugins (Upcoming)

  1. Open Obsidian Settings (โš™) โ†’ Community plugins.
  2. Make sure Restricted mode is turned off.
  3. Search for Notion TOC and click Install, then Enable.

Method 2: Via BRAT (Recommended for immediate updates)

  1. Install the Obsidian42 - BRAT plugin from Community Plugins.
  2. In Obsidian, open the Command Palette (Ctrl/Cmd + P) and run:
    BRAT: Add a beta plugin for testing
    
  3. Enter the repository URL:
    https://github.com/tanishdt/obsidian-notion-toc
    
  4. Click Add Plugin, then enable Notion TOC under Settings โ†’ Community plugins.

Method 3: Manual Installation

  1. Download manifest.json, main.js, and styles.css from the Latest Release.
  2. Inside your Obsidian vault, navigate to .obsidian/plugins/ (create the folder if it doesn't exist).
  3. Create a folder named notion-toc and paste the three downloaded files inside:
    YourVault/
    โ””โ”€โ”€ .obsidian/
        โ””โ”€โ”€ plugins/
            โ””โ”€โ”€ notion-toc/
                โ”œโ”€โ”€ main.js
                โ”œโ”€โ”€ manifest.json
                โ””โ”€โ”€ styles.css
    
  4. Restart Obsidian (or click the reload icon in Community plugins) and toggle Notion TOC on.

๐ŸŽฎ Usage & Controls

ActionResult
Hover right railSlides open the table of contents sidebar
Click any tick or headingInstantly scrolls the note to that section
Move pointer awaySidebar closes automatically after a configurable delay
Command Palette: Toggle table of contents railQuick toggle to show or hide the rail
Tap rail (Mobile)Opens the sidebar
Tap backdrop (Mobile)Closes the sidebar

โš™๏ธ Settings

Customize Notion TOC from Settings โ†’ Community plugins โ†’ Notion TOC:

SettingDefaultDescription
Enable table of contentstrueToggle the rail visibility across your vault.
Minimum headings1Automatically hide the rail on short notes with fewer headings than this threshold.
Deepest heading level6Exclude deeper headings (e.g. limit to H1โ€“H3 for high-level summaries).
Sidebar width260pxCustomize the flyout sidebar width.
Distance from right edge14pxAdjust rail offset (useful if you use a wide custom scrollbar).
Close delay250msBuffer time before the flyout dismisses after the mouse leaves.
Smooth scroll duration400msMaximum glide time to a clicked heading (0โ€“1000ms). Set to 0 to jump instantly.

๐Ÿ› ๏ธ How It Works

  • Metadata-Driven: Listens directly to Obsidian's fast MetadataCache API, keeping headings synced with zero document re-parsing overhead.
  • Scroll Synchronized: Reads coordinates via the active view's viewport scroll API to maintain accurate active-heading tracking in both Live Preview and Reading views.
  • Pure JavaScript: Built with standard TypeScript/JavaScript, zero heavy runtime dependencies, and negligible memory footprint.

๐Ÿ—บ๏ธ Roadmap

  • Left-edge rail placement option
  • Collapsible parent heading trees within the sidebar
  • Optional pin mode to keep the sidebar permanently expanded
  • Frontmatter flag (notion-toc: false) for per-note disabling

๐Ÿค Contributing

Contributions, bug reports, and suggestions are welcome!

  1. Fork the repository
  2. Create your branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ‘ค Author

Crafted by Tanish Vijay


๐Ÿ“„ License

This project is open-source and licensed under the MIT License.

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.