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

LinkMagic

andyreifmanandyreifman1k downloads

Automatically adds links to defined regex.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates9

The LinkMagic Plugin for Obsidian is a convenient tool designed to simplify the process of adding links to your notes in Obsidian. With LinkMagic, you can define custom Regex Patterns and automatically insert links as you type, without needing to switch between editing and reading modes.

Key Features

  • Regex Pattern Matching: Define custom Regex Patterns to identify specific text strings in your notes.
  • Automatic Link Insertion: Once a Regex Pattern is matched, LinkMagic automatically inserts the defined link.
  • Works in Editing Mode: Unlike some other plugins, LinkMagic works seamlessly within the editing mode, saving you time and enhancing your workflow.
  • Customizable: Configure your Regex Patterns and corresponding links in the plugin's settings page to tailor it to your needs.

Usage

  1. Installation: Install the LinkMagic Plugin from the Obsidian Community Plugins tab.
  2. Configuration: Navigate to the plugin settings page to define your Regex Patterns and corresponding links.
  3. Usage: As you type in the editing mode, LinkMagic will detect the defined patterns and automatically insert the associated links when you press space or enter (tab support will be added in future updates).

Example

Configuring a Jira Link Replacer Rule

To create a rule that automatically converts Jira issue keys into clickable links:

  1. Create a New Rule: In the LinkMagic settings, add a new rule.
  2. Define the Pattern: Specify the pattern that will trigger the replacement. For my example Jira instance issue keys, use the regular expression JIRA-[\d+] to match any text starting with "JIRA-" followed by one or more digits.
  3. Set the Replacement: Determine the URL template to which the matched text will be replaced. For Jira, use https://jira.com/browse/{pattern}, where {pattern} will be replaced with the captured issue key.

An image showing the settings page for LinkMagic with an example pattern

Using RegExp groups

RegExp groups are completely supported, by using the group number or name in the replacement link. For example, in a string This is an example sentence where target-words-123456 will be replaced. the pattern target-(?<name>[a-zA-Z]+)-(?<number>[0-9]+) allows the following replacements:

replacement value
{0} "target-words-123456"
{1} "words"
{2} "123456"
{pattern} "target-words-123456"
{name} "words"
{number} "123456"

With the above pattern and a target link https://example.com/{name}/{number}, the example string from above would then become This is an example sentence where [target-words-123456](https://example.com/words/123456) will be replaced..

Support and Feedback

If you encounter any issues or have suggestions for improving LinkMagic, please feel free to open an issue on GitHub.

License

LinkMagic is released under the MIT License.

74%
HealthGood
ReviewSatisfactory
About
Define custom regex patterns to detect text and automatically insert links as you type in edit mode. Configure URL templates with capture groups to convert matches into clickable links.
LinksEditingAutomation
Details
Current version
1.1.1
Last updated
9 months ago
Created
2 years ago
Updates
9 releases
Downloads
1k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
andyreifmanandyreifman
GitHubandyreifman
  1. Community
  2. Plugins
  3. Links
  4. LinkMagic

Related plugins

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.

Paste URL into selection

Paste URL "into" selected text.

Note Refactor

Extract note content into new notes and split notes.

Link Embed

Convert URLs in your notes into embeded previews.

MetaEdit

Manage your metadata.

PodNotes

Write notes on podcasts with ease.

Advanced Tables

Improved table navigation, formatting, and manipulation.

QuickAdd

Quickly add new notes or content to your vault.