blursedperf28 downloadsOpens internal links in a new tab by default, with options for same-note heading links, tab reuse, and Cmd/Ctrl+Click inversion.
An Obsidian plugin that causes internal links ([[WikiLinks]], Markdown links, Properties links, Backlinks, Outgoing Links, Graph nodes, Canvas links, and Follow link under cursor) to open in a new tab by default instead of replacing the current tab.
I created this suite of Obsidian plugins and the DoomEsque theme so that I can be 100 percent certain there are no network calls or traffic: everything runs 100 percent offline, so I can use Obsidian for my notes in open-book law exams.
scripts/offline-audit.mjs, which fails on any network API (fetch, XMLHttpRequest, WebSocket, requestUrl, ...).The suite:
[[#Heading]] or [[CurrentNote#Section]]) scroll the current tab in place rather than opening a duplicate tab.Cmd (macOS) or Ctrl (Windows/Linux) while clicking a link opens it in the current tab, while context-menu "Open in new tab" continues to open in a new tab.monkey-around to cooperate cleanly with other plugins hooking workspace.openLinkText, automatically restoring native behavior upon unload.In accordance with Obsidian Developer Policies:
scripts/offline-audit.mjs, which fails on any network API (fetch, XMLHttpRequest, WebSocket, requestUrl, workers, dynamic import(), ...), dynamic code (eval, new Function), raw HTML injection, or remote CSS (@import, non-data: url()).| Setting | Default | Description |
|---|---|---|
| Open links in new tab by default | true |
Master toggle controlling default link opening behavior. |
| Default target for opened links | New tab |
Target pane type for links (New tab, Split right, or New window on desktop). |
| Focus newly opened tab | true |
Immediately switch focus to the new tab when a link is opened. |
| Keep same-note heading and block links in current tab | true |
Prevent opening duplicate tabs when clicking links that resolve to the active file. |
| Reuse existing tab if note is already open | false |
Focus an already-open tab for the destination note if one exists. |
| Cmd/Ctrl+click opens in current tab | true |
Holding Cmd / Ctrl while clicking a link opens it in the current tab. |
Links in New Tabs: Toggle default link opening behavior — Quick hotkey toggle to enable or disable the plugin.Links in New Tabs.main.js and manifest.json from the latest GitHub Release.links-in-new-tabs inside your vault's .obsidian/plugins/ directory.main.js and manifest.json into .obsidian/plugins/links-in-new-tabs/.# Run unit tests
npm test
# Build production bundle
npm run build
MIT © blursedperf