Notion TOC
unlistedby 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.
Notion TOC for Obsidian
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.

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.

โจ 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)
- Open Obsidian Settings (
โ) โ Community plugins. - Make sure Restricted mode is turned off.
- Search for Notion TOC and click Install, then Enable.
Method 2: Via BRAT (Recommended for immediate updates)
- Install the Obsidian42 - BRAT plugin from Community Plugins.
- In Obsidian, open the Command Palette (Ctrl/Cmd + P) and run:
BRAT: Add a beta plugin for testing - Enter the repository URL:
https://github.com/tanishdt/obsidian-notion-toc - Click Add Plugin, then enable Notion TOC under Settings โ Community plugins.
Method 3: Manual Installation
- Download
manifest.json,main.js, andstyles.cssfrom the Latest Release. - Inside your Obsidian vault, navigate to
.obsidian/plugins/(create the folder if it doesn't exist). - Create a folder named
notion-tocand paste the three downloaded files inside:YourVault/ โโโ .obsidian/ โโโ plugins/ โโโ notion-toc/ โโโ main.js โโโ manifest.json โโโ styles.css - Restart Obsidian (or click the reload icon in Community plugins) and toggle Notion TOC on.
๐ฎ Usage & Controls
| Action | Result |
|---|---|
| Hover right rail | Slides open the table of contents sidebar |
| Click any tick or heading | Instantly scrolls the note to that section |
| Move pointer away | Sidebar closes automatically after a configurable delay |
Command Palette: Toggle table of contents rail | Quick 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:
| Setting | Default | Description |
|---|---|---|
| Enable table of contents | true | Toggle the rail visibility across your vault. |
| Minimum headings | 1 | Automatically hide the rail on short notes with fewer headings than this threshold. |
| Deepest heading level | 6 | Exclude deeper headings (e.g. limit to H1โH3 for high-level summaries). |
| Sidebar width | 260px | Customize the flyout sidebar width. |
| Distance from right edge | 14px | Adjust rail offset (useful if you use a wide custom scrollbar). |
| Close delay | 250ms | Buffer time before the flyout dismisses after the mouse leaves. |
| Smooth scroll duration | 400ms | Maximum 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
MetadataCacheAPI, 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!
- Fork the repository
- Create your branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ค Author
Crafted by Tanish Vijay
- GitHub: @tanishdt
- Portfolio: tanish.digital
๐ 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.