New Tab Link Router · Obsidian plugin documentation
New Tab Link Router documentation

New Tab Link Router opens clicked internal links and File Explorer items in a new tab by default, so clicking a reference note never replaces the document you are reading or editing. When the target note is already open in your workspace, the plugin focuses that existing tab instead of opening a duplicate. Pinned tabs stay protected at all times, and a status-bar toggle lets you pause or resume routing with one click.
Every routing decision, deduplication check, custom rule evaluation, modifier-key inversion, and least-recently-used tab cleanup runs offline on your device. No vault data, file paths, or tags leave Obsidian.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
Open Settings, then Community plugins, then Browse, and search for "New Tab Link Router". Select Install, then Enable. Works on desktop and mobile.
2 Getting started
- Enable the plugin. Clicking internal links in Reading View or File Explorer entries now opens files in a new tab by default.
- Click a note that is already open to jump straight to its existing tab instead of opening a duplicate.
- Click "New tab: On" in the status bar or run "Toggle new-tab routing" from the command palette to pause or resume routing at any time.
- Run "Deduplicate open tabs" to clean up unmodified duplicate tabs already open in your workspace.
- With Pro, open "Configure routing rules" to set per-folder, per-tag, or per-extension destinations, configure modifier-key inversion and the max-tab LRU cap in Settings, and test any path in "Open routing rule tester".
3 Features
Open internal links and File Explorer items in a new tab
Click any internal wiki link or Markdown link in Reading View (or Ctrl/Cmd+Click wiki links in Live Preview), or click any File Explorer entry to open it in a new tab automatically. You keep your current note visible without holding modifier keys on each click. Internal link routing and File Explorer routing toggle independently in Settings.
Smart tab deduplication and pinned-tab respect
Before creating a tab, New Tab Link Router checks your workspace for an open tab showing the same file and switches focus to it instead of opening a duplicate. Pinned tabs are never overwritten, even when a rule or modifier requests the current tab. Run "Deduplicate open tabs" to close unmodified duplicates on demand.
Status-bar quick toggle
Check routing status at a glance in the bottom status bar. Click the indicator or run "Toggle new-tab routing" to pause routing and return to native click behavior.
Per-folder, per-tag, and per-file-type routing rules (Pro)
Define ordered rules by folder prefix, note tag (including nested tags), or file extension. Route PDFs and Bases to a split right pane, daily notes to a pinned tab, or reference notes to a new tab, split down pane, or popout window. Starter presets give you working rules in one click.
Modifier-key inversions (Pro)
Hold Alt / Option, Shift, or Ctrl / Cmd while clicking to invert the destination between new tab and current tab. Pinned-tab protection still prevents replacing a pinned active tab.
Max-tab cap with LRU auto-close of unmodified tabs (Pro)
Set a maximum open-tab limit from 2 to 100. When opening a new tab exceeds the cap, New Tab Link Router closes the least-recently-used unpinned, inactive, unmodified tab. Pinned tabs, active tabs, sidebars, and unsaved notes stay untouched.
Interactive routing rule tester modal (Pro)
Open the Routing rule tester modal, enter any vault path and optional tags or modifier key, and preview the matched rule, target pane, deduplication hit, and LRU eviction candidate.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Toggle new-tab routing | new-tab-link-router:toggle-router |
| Deduplicate open tabs | new-tab-link-router:deduplicate-open-tabs |
| Configure routing rules | new-tab-link-router:configure-routing-rules |
| Open routing rule tester | new-tab-link-router:open-rule-tester |
5 Settings
| Setting | Default | Description |
|---|---|---|
| Enable new-tab routing | On | Open clicked internal links and file explorer items in a new tab by default. |
| Route internal links | On | Open clicked wiki links and Markdown internal links in a new tab. |
| Route file explorer items | On | Open clicked notes and attachments in the file explorer in a new tab. |
| Deduplicate open tabs | On | Focus an already-open tab for the clicked file instead of opening a duplicate tab. |
| Respect pinned tabs | On | Never overwrite a pinned tab even when a rule or modifier requests the current tab. |
| Show status bar quick toggle | On | Display a clickable routing status toggle in the bottom status bar. |
| Enable custom routing rules | Off | Apply per-folder, per-tag, and per-file-type routing rules (Pro). |
| Enable modifier-key inversion | Off | Hold a modifier key to invert between new tab and current tab on click (Pro). |
| Inversion modifier key | alt |
Modifier key (alt, shift, mod, or none) that inverts routing on click (Pro). |
| Enable max-tab cap | Off | Auto-close least-recently-used unmodified tabs when exceeding the open-tab cap (Pro). |
| Maximum open tabs | 12 |
Maximum main workspace tabs kept open before LRU auto-close runs (2 to 100) (Pro). |
6 Pro
The command "What Pro adds" shows each paid feature with an interactive demo on sample data.
- Route clicked files by folder, tag, or file extension into split panes, pinned tabs, new tabs, or popout windows.
- Invert default or rule-matched tab routing on demand by holding Alt, Shift, or Ctrl/Cmd while clicking.
- Enforce a maximum open-tab cap that automatically closes least-recently-used unmodified tabs while protecting pinned notes.
- Preview rule matches, modifier inversions, deduplication, and LRU tab eviction on any note in the interactive rule tester modal.
Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.
7 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=new-tab-link-router. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, New Tab Link Router makes no network requests. Sign in uses the GitHub device flow. New Tab Link Router sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, New Tab Link Router sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
8 Questions and answers
Does New Tab Link Router interfere with renaming files in the File Explorer?
No. Clicks inside file rename fields, text inputs, and content-editable fields are ignored so inline renaming works normally.
Will the max-tab cap ever close a pinned tab or lose unsaved changes?
No. The LRU auto-close engine skips pinned tabs, the currently active tab, sidebar views, and any Markdown view with unsaved changes.
What happens if I middle-click or right-click a link?
Only primary (left) clicks are intercepted. Middle-clicks, right-clicks, and context menus continue to use native Obsidian behavior.
How does tab deduplication handle pinned tabs?
If a file is already open in a pinned tab, deduplication prefers focusing that pinned tab and leaves its pinned state intact.
9 Support
Plugin page: new-tab-link-router.
Report a bug or ask for a feature in the issue tracker of this repository. Include your Obsidian version and steps to reproduce.
To build from source:
npm ci
npm run build
npm test
10 License
MIT