Linking highlighted text to an internal note

What I’m trying to do

Ultimately, I want a command (that I can hotkey to) that links the currently highlighted text as the display text for an internal note. I want to run the command, immediately be able to type-to-search for the name of the note I want to link the text to, press Enter, and voila, the link is created.

Things I have tried

I’ve tried making this work the way I want with the “Add internal link” command. I highlight some text, and run “Add internal link” via the command palette. The modal appears with a search box for me to select an existing note, and when I select a note, it replaces my highlighted text with the name of the note. I then need to type the original text again in order to use it as the link’s display text. This is feasible when I’m linking a handful of words, but irritating when I’m linking an entire sentence.

1 Like

I don’t remember the thead contained a solution involving picking a filename from the metadatacache but AlanG may have other alias related stuff if you search the forum.

But if you have ==string or two== in selection, you’ll need to trim the equal signs off, I reckon.