Link As

by David V. Kimball
5
4
3
2
1
Score: 30/100

Description

Link selected text to any note, keeping it as the display text.

Reviews

No reviews yet.

Stats

1
stars
1,223
downloads
0
forks
145
days
100
days
142
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
8
commits

Latest Version

5 months ago

Changelog

Fix authorUrl to davidvkimball.com and bump to 0.0.3


Full Changelog: https://github.com/davidvkimball/obsidian-link-as/compare/0.0.2...0.0.3

README file from

Github

Link selected text to any note, keeping it as the display text.

Obsidian can wrap a selection in [[ ]], but it uses your text as the search target, not as the display. Link As lets you keep your wording and point it at whatever note you choose, without writing anything to the target note. Particularly helpful alongside Property Over File Name, which lets the note picker show titles instead of file names.

Link As plugin demonstration

Made for Vault CMS

Part of the Vault CMS project.

Features

  • Link a text selection to any note, keeping the selection as the inline display text.
  • Or run it with nothing selected and type the display text (or leave it empty to use the note's title).
  • Never writes to the target note's properties (inline links only).
  • Respects your link format (wikilink or Markdown, shortest path) and omits a redundant alias when it just repeats the file name.
  • Property Over File Name aware: the note picker lists notes by their title property.

Installation

  1. In Obsidian, go to Settings → Community plugins (enable it if you haven't already).
  2. Search for Link As david (searching just "Link As" buries it in the results), then click Install and Enable. You can also open it directly with this link.

Manual

  1. Download the latest release from the Releases page and navigate to your vault's .obsidian/plugins/ directory.
  2. Create a folder called link-as and place manifest.json and main.js inside it.
  3. In Obsidian, go to Settings → Community plugins and enable "Link As."

Usage

Run the command Link As: link text to a note (suggested hotkey: Ctrl/Cmd+Shift+K).

  • With text selected: your selection becomes the display text. Pick a note and it becomes [[note|your selection]].
  • With nothing selected: type the display text (or leave it empty to use the note's title), then pick a note.

Nothing is written to the target note's properties. If Property Over File Name is installed, the picker shows notes by their title property, and an empty display falls back to that title.

Credits

Inspired by Link with Alias by Pavel Vojtěchovský. Link As keeps the select-and-link flow but never writes aliases to the target note.

License

MIT