Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Heading Linker & Refactor

wilmtangwilmtang1 downloads

Copy a markdown link to a heading with configurable path and hierarchy.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Supercharge your Obsidian headings! Easily copy robust markdown links to any heading, find all references, and safely rename headings across your entire vault.

Why this plugin?

As your vault grows, headings become powerful anchors for your thoughts. But Obsidian's native heading links can break if you rename them, and finding where a heading is used can be tedious.

Heading Linker & Refactor solves this by providing a suite of advanced tools right in your editor's context menu.

✨ Features

  • 🔗 Smart Linking: Right-click any heading to copy a markdown link to it. If you have duplicate headings in the same file, the plugin automatically generates and inserts a unique HTML anchor (e.g., <a id="...">) so your link never points to the wrong place!
  • 📝 Safe Renaming: Right-click a heading and select "Rename this heading...". The plugin will safely rename the heading and instantly update every single link pointing to it (Wiki, Markdown, and HTML links) across your file, folder, or entire vault. It even intelligently updates display aliases that match the old heading name.
  • 🔎 Find References: Need to know everywhere a heading is mentioned? Click "Find heading references..." to open a beautifully formatted search modal. See the exact context of each mention and jump straight to the source.
  • ⚡ Lightning Fast Refactor: Press Shift + Enter right inside the "Find References" modal to instantly rename the heading and all its references across your vault!
  • ⚙️ Customizable Settings: Choose between relative or full vault link paths, and configure the default scope for renaming headings (Entire Vault, Current Folder, or Current File).
  • ⌨️ Keyboard Shortcuts (Hotkeys): Bind custom keyboard shortcuts for all three commands (Copy, Rename, and Find References) that trigger only when editing a heading line!

🛠️ How to Use

  1. Open any markdown file in Obsidian.
  2. Right-click on any heading in the editor to open the context menu.
Context Menu
  1. Choose one of the new options:

    • Copy markdown link to heading: Instantly copies a reliable markdown link to your clipboard.

    • Rename this heading...: Opens a modal to safely rename the heading across your entire vault.


    Rename Heading Modal
    • Find heading references...: Opens a beautifully formatted search modal to see the exact context of each mention and jump straight to the source.

    Find References Modal

⚙️ Configuration & Hotkeys

Keyboard Shortcuts (Hotkeys)

By default, the plugin registers commands without default keyboard shortcuts so they don't conflict with your existing setup. You can assign your own custom shortcuts in Obsidian:

  1. Open Obsidian Settings and navigate to Hotkeys.
  2. Search for Heading Linker & Refactor.
  3. Click the blank button next to a command to record a key combination for:
    • Copy Markdown Link
    • Rename this Heading
    • Find Heading References

[!NOTE] To prevent accidental triggers, these keyboard shortcuts are context-sensitive. They will only trigger when your cursor is positioned directly on a heading line. If you press the shortcut while the cursor is anywhere else in the document, the command will silently do nothing.

Settings Tab

Navigate to Settings > Heading Linker & Refactor to customize the default behavior:

  • File Path Format: Choose whether generated links use relative paths (./filename.md) or full vault paths (folder/filename.md).
  • Rename Scope: Set the default search scope when renaming a heading (search and replace in the Entire vault, Current folder only, or Current file only).

📥 Installation

From Obsidian Community Plugins

You can install this plugin directly from the Obsidian Community Plugins store: Heading Linker & Refactor

Manual Installation

  1. Download the latest release (main.js and manifest.json) from the Releases page.
  2. Create a folder named obsidian-heading-linker in your vault's .obsidian/plugins/ directory.
  3. Place the downloaded files in that folder.
  4. Restart Obsidian, go to Settings > Community Plugins, disable "Safe Mode", and enable Heading Linker & Refactor.

💻 Development

Want to contribute or build it yourself?

npm install
npm run build

Built with ❤️ for the Obsidian Community.

98%
HealthExcellent
ReviewPassed
About
Copy markdown links to specific headings from the editor or outline via right-click. Choose relative or full-vault paths and include parent headings to create hierarchical anchors or link only the target heading.
Links
Details
Current version
1.0.6
Last updated
Yesterday
Created
2 weeks ago
Updates
3 releases
Downloads
1
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
wilmtangwilmtangwilmtang
GitHubwilmtang
  1. Community
  2. Plugins
  3. Links
  4. Heading Linker & Refactor

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Link Favicons

See the favicon for a linked website.

Advanced URI

Control everything with URI.

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Auto Link Title

Automatically fetches the titles of links from the web.

Strange New Worlds

Reveal networked thought and the strange new worlds created by your vault.

Paste URL into selection

Paste URL "into" selected text.

Consistent Attachments and Links

Move note attachments and update links automatically.