A modifier key to allow you to select from the drop down, but retain your text

Use case or problem

When entering an obsidian link [] you get a drop down of likely notes you’d like to choose from, but often you don’t want the text in the link to be exactly the same as the link. At present if you select something from the dropdown that becomes your text. You can manually write [[link|text]] but that’s clunky.

Proposed solution

If you were writing your text, as you want it in your the flow of the text you’re writing, let’s say you’re writing “life [[emerges]] from lower order…”, you want it to link to your [[Law of Emergence]] note, and when you write “emerges” you get “Law of Emergence” come up in the drop down, it would be great if you could hold a modifier key (shift) that would select the note you want, but retain your text after a pillar.

Current workaround (optional)

Currently you select the text from the drop down and it replaces your text, then have to rewrite your text after the pillar, which breaks the flow

1 Like

After finding the link you want instead of pressing enter, but the tab key followed by | and type your link text, and then hit enter.

This has already been implemented…

1 Like

It would be more streamlined if there was a way to type first (because you need to type first anyway to bring up likely candidates in the dropdown) then have it not replace the text you’ve just written, and add a bar in front. That’s the feature I’m requesting. I understand the workflow you have suggested, it’s what I end up doing, but I often find myself writing something into a sentence, checking if there’s a related note and then wanting to keep what I’ve written, it would just be helpful if I could choose the note without losing the text.

OK, I then follow you a little bit better. I guess I just think/write slightly different, as I reckon I would do it like life [[law of...<tab>|emerges<enter>]]. I mean I often think what I would link before I write the link text, which enables me to start searching for link before I actually enter the alias for the link. Lucky me, I guess…

So I could see your vantage point for this feature request, and before it’s potentially realised by best suggestion would be to do Shift Opt <-, Cmd C which would select the word to the right and copy the alias text, i.e. emerges, hit the double square bracket, [[, find the link, and then hit Tab, |, Cmd V, Enter. But this is indeed kind of clunky…

1 Like

I guess another way to phrase your request would be an option to select a text, and then add related link where the autocomplete would kickstart the search with your selected text (and keep it as an alias when you eventually select a link).

I wonder if we’re able to trigger the autocomplete on links using a commands, because then this could be done using a template.

1 Like

And somebody has definitive thought that thought before, as there is already a plugin for doing just this (or very similar to this). Check out the post below, talking about the Link with alias plugin:


Another option is to use assign a hotkey to Links: Create link from the Links plugin. This allows you select the text, execute that command and it opens the autosuggester allowing the aliased text to remain an alias.


And yes, I do still understand it would be nice to have this a native command, I’m just finding that there do exists workarounds in the community plugins. :smiley:


This feature request is also very similar to this one: Type | while text is selected to create a link with the selected text as an alias - #12 by pavel.knowledge Slightly different mechanics, but essentially the same. That thread ended with the publicificaiton of the Link with alias plugin I mention above.

1 Like

Thanks, I hadn’t come across shift-opt ← before, that’s going to be handy in many areas.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.