Autocomplete and display text for markdown links

Use case or problem

  • I prefer markdown links over wiki links
  • I want autocomplete on my markdown links
  • I want to change the display text of my markdown links

All this without moving the cursor and using the mouse, in order for it to be fast and efficient. Wiki links already support this with the [[ and | keys.

Proposed solution

Trigger the autocomplete prompt after writing the opening parenthesis of a markdown link. (i.e. after this part: [display text](). I manually type the ]( characters.

Obsidian already automatically inserts matching brackets [] and parenthesis ().

Optional: Use TAB to move from the display text to the parenthesis, like this:

  1. Write [home and see [home].
  2. Press TAB
  3. See [home]() with the cursor between the parenthesis, and a popup with autocomplete suggestions.

Optional 2: Autocomplete suggestions are based on the display text.

Current workaround (optional)

  1. Use [[ to trigger the autocomplete popup and insert a link.
  2. Press <- many times to go back to the display text, use backspace to delete.
  3. Write a new display text.

if it helps …

“If you have Wikilinks turned off in your settings, then when you type [[ to start a link, it will show the auto-complete, but then the link will be formatted as a Markdown link.”
from Starting a wiki link displays files to link to; why not starting a markdown link - #2 by rigmarole

and …

“FIX: Turn on “Use Standard Markdown Links” in Editor options and continue typing in wikilinks to grab link from suggestions; this should then automatically reformat links to standard md, once a link suggestion is selected”
from Which is better- WikiLinks or Markdown links?

1 Like

Thanks, I was aware of this trick.

However can’t easily edit the display text with this …