Edit Link Alias

by mnaoumov
5
4
3
2
1
Score: 53/100

Description

The Edit Link Alias plugin adds a command to edit the alias of links within your notes. When you invoke the command, it displays a prompt that lets you modify the display text of a link without changing its target. This is particularly useful when you want to refine how links appear in your notes for better readability or context.

Reviews

No reviews yet.

Stats

9
stars
950
downloads
1
forks
208
days
1
days
1
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
8
total issues
0
open issues
8
closed issues
0
commits

Latest Version

a day ago

Changelog

  • chore: update libs and adopt obsidian-integration-testing 10

Full Changelog: https://github.com/mnaoumov/obsidian-edit-link-alias/compare/1.5.1...1.5.2

README file from

Github

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

This is a plugin for Obsidian that adds an Edit link alias command (changes only the display text of the link under your cursor) and an Edit link (URL and alias) command (a two-field pop-up that edits the link's target and display text together). Both are available from the Command Palette, the editor right-click menu, and the link long-press / Reading-view context menu, and work on internal wikilinks, markdown links, external links, and links in a note's frontmatter alike. Alt + clicking a link opens that editor right at the link, and the same editor is what the context menu opens.

Prompt

Alt + click a link (Option + click on macOS) and the editor opens as a small pop-up right at the link, instead of the link opening. It works in Reading view, Live Preview, and source mode, on desktop and mobile.

The pop-up opens on the alias with the text already selected, so the more common edit needs no extra click; Tab moves to the URL.

It does not matter which part of the link you click — the display text or the destination — or where the text cursor happens to be, including inside the link itself.

Alt + click is used because Obsidian gives it no meaning on a link, so nothing you already do changes: a plain click still opens the link, and Ctrl + click (Cmd + click) still opens it in a new tab.

It is on by default; turn it off with Should open link editor on Alt + click in Settings → Edit Link Alias.

Links living in a note's properties are editable the same way: Alt + click one in the Properties panel, right-click it, or put the cursor on it in source mode where the frontmatter is plain YAML. Property names are matched regardless of their capitalization, so a Homepage: property works exactly like a homepage: one.

Such an edit is written back through the frontmatter, so the value is quoted whenever it needs to be — url: https://example.com becomes url: "[Example](https://example.com)" rather than a note that no longer parses. Two consequences worth knowing:

  • the frontmatter block is re-serialized, so comments and hand formatting inside it are normalized;
  • the change is written to the file rather than typed into the editor, so it is not part of the editor's undo history.

Demo vault

A demo vault with usage examples ships with every release. You can access it via any of the following:

  1. Running the Edit Link Alias: Open demo vault command.
  2. Downloading edit-link-alias-demo-vault-<version>.zip (<version> is the release version) from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('edit-link-alias');

For more details, refer to the documentation.

Support

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
AI Revisionist
a year ago by Synaptic Labs
Alias from heading
4 years ago by Chris Basham
Obsidian plugin: Implicitly add an alias matching the first heading in a document.
Alias Picker
2 years ago by rostunic
Another Name
a year ago by Jiyuan Wang
Add a subheading to your note in Obsidian
Auto Correct Capitals Misspellings
2 years ago by Ummel
This plugin automatically corrects words where the first two letters are capitalized and the rest are lower case.
Better MathJax
3 years ago by GreasyCat
Broken Links
2 years ago by ipshing
Duplicate line
a year ago by Marcin Sztolcman
Plugin for Obsidian: duplicate current line, or selection.
Editing Mode Hotkey
2 years ago by Signynt
Obsidian plugin to change the default editing mode (between Live Preview and Source) using a command or hotkey
Expand Selection
4 months ago by Alex Tait
Expands the editor selection to lines, sections, or the entire note for convenience on mobile.
External Links View
10 months ago by theamritanair
An Obsidian plugin which collates all external links in one view.
FastForwardLink
2 years ago by Idan Liberman
FastForwardLink Obsidian.md Plugin
Footlinks
6 years ago by Daha
Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
Frontmatter Markdown Links
2 years ago by mnaoumov
Obsidian Plugin that adds support for markdown links in frontmatter
Hemingway Mode
2 years ago by Joaquín Bernal
Link Formatter
2 years ago by Dilantha Nanayakkara
Formats a block of links into a clean markdown list in Obsidian
Link with alias
3 years ago by Pavel Vojtechovsky
Obsidian plugin for handy creation of links and alias in front matter of target document
Mode manager
a year ago by dk949
Better management of reading/editing modes in obsidian
Multilingual
2 years ago by leolazou
An plugin for Obsidian that translates note names to ease linking across many languages.
Nova
6 months ago by Shawn Duggan
Nova - AI plugin for Obsidian that edits your documents directly through natural conversation. Stop copying from chat, start collaborating with AI.
Paste as file link
a year ago by Matthias Büge
This plugin is used to paste a text from the clipboard as a link to an existing obsidian note
Pixel Perfect Image
a year ago by Johan Sanneblad
Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.
Proofreader
a year ago by pseudometa (aka Chris Grieser)
AI-based proofreading and stylistic improvements for your writing. Changes are inserted as suggestions directly in the editor, similar to suggested changes in word processing apps.
Quick Nav
a year ago by exoticknight
Enhance your editing experience by unleashing the hidden power of shortcuts.
Redirect
4 years ago by Jacob Levernier
An Obsidian plugin for adding aliases to any file
Regex Line Filter
a year ago by 64MM4-KN1F3
A note filtering plugin for Obsidian
Rich Text Editor Shortcuts
2 years ago by Joshua Wootonn
Create and toggle checkboxes, paste links wrapping your current selection, and toggle underline without leaving the keyboard.
Select word
2 years ago by Connor Espino
Side-Notes
9 days ago by Fried Fishsticks
Adds ability to create sidenotes in Obsidian with incrementing numbers. - This plugin has not been manually reviewed by Obsidian staff.
Smart Link Alias
2 years ago by Victor Perez-Cano
Smart Link Formatter
a year ago by ccmdi
Obsidian plugin that automatically formats links with information from dynamic websites
Spellcheck Toggler
2 years ago by Julian Szachowicz
A plugin for Obsidian which gives you more control over the red-underline spellcheck behaviour.
Table Line Break Mobile
6 months ago by marcelflymark
Obsidian plugin: Insert a new line break inside a table cell using the <br> HTML element
URL Formatter
a year ago by Thomas Snoeck
Automatically formats specific URLs pasted into Obsidian into clean Markdown links.
Variant Editor
a year ago by Kunal Jain
Obsidian plugin to create variants
Write Good
a year ago by Mark Hesketh
Obsidian plugin to help improve writing style