Changing what a link says in Obsidian means editing the raw link text by hand — finding the | in a wikilink or the right pair of brackets in a markdown link, in the middle of a sentence, without breaking either. In Reading view you cannot do it at all without switching modes.
This plugin edits the link under your cursor through a small pop-up: Edit link alias changes just the display text, and Edit link (URL and alias) changes the target and the text together. Both work on wikilinks, markdown links, external links and links in a note's properties, from the Command Palette, the right-click menu, or Alt + clicking the link itself.
The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, with links of every kind already in place to edit.
Start reading here — it is plain markdown, so it works on GitHub with nothing installed.
A copy of the vault ships with every release. You can access it via any of the following:
edit-link-alias-demo-vault.zip from the Releases. It unzips into a single edit-link-alias-demo-vault-<version> folder.demo-vault/ in this repository.| or the brackets. 01 Edit link aliasAlt + click a link to edit it — in Reading view, Live Preview and source mode, on desktop and mobile. It opens on the alias with the text selected, since that is the more common edit, and Tab moves to the URL. Alt + click is used because Obsidian gives it no meaning on a link, so nothing you already do changes. 04 Alt click a link to edit itThe plugin is available in the official Community Plugins repository.
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:
Add plugin button once and wait a few seconds for the plugin to install.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.
All notable changes to this project will be documented in the CHANGELOG.
Contributions are welcome — see CONTRIBUTING to get set up.
See my other Obsidian resources.