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:
Write [home and see [home].
Press TAB
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)
Use [[ to trigger the autocomplete popup and insert a link.
Press <- many times to go back to the display text, use backspace to delete.
“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?
Even if you have Settings > Files and links → Use [[Wikilinks]] disabled, you can still use the auto-suggester by typing [[ for suggestions → arrow to or type the partial note note → # or ^ → arrow to the heading/block → enter, and a proper Markdown link (spaces encoded as %20 if necessary) will be created.
You’ll need to go back and change the display text if it’s not to your liking, but that works.
Thanks @ariehen - it seems you need to hit # as soon as you identify the note in question before the cursor exists the note name. Going back after the link has been created in your note doesn’t then reveal the headings. But hitting hash for the first time works great. Live and learn etc.
Recently, Obsidian got an upgrade to support Markdown links in Properties, so progress is being made to better support Markdown style links, but this FR remains outstanding: we need improved usability of the autocomplete modal when Markdown-style links are used. This may include:
Introducing a new autocomplete prompt like how + and @ in Notion prioritize new notes and users, respectively. This might alleviate the old design decision to have pipes not autocomplete the full link when typed.
Allow the autocomplete modal to display when typing a markdown link. Some options:
One types [the display text they want]( then the modal shows
One types e.g. [the display text they want](< then the modal shows
Because [links](<like this.md>) allow for non-escaped filenames, one could reasonably assume the user wants a local link rather than a hyperlink once they type <
A new shortcut for inserting local links
Other option?
However this is addressed, I consider this an open FR not solved by ariehen’s workaround (needing to go back and change the display text is the very crux of the FR), and I hope others are interested in a solution to this.