If I have some text that I already typed, and I want to turn it into the display text for a new Wikilink, and if I append two closing square brackets to it, and then move back the insertion point to before the display text, type two opening square brackets, the target note’s title will be autocompleted if existent, but then if I select the target note, the display text vanishes. This happens also if I first add the pipe character right before the display text, move back, and the type [[target note title.
It’s not easy to explain, but if you try you’ll see what the problem is. I’m not sure if this should count as a bug or a feature request, but I would like this to work as you would probably expect.
Here’s a video. At the end, what happens is that I hit return to pick the selected autocompleted note (“Barzun”), and then the display text and the pipe character vanish.
What I would want (and what I think is intuitive) is:
I select a word or phrase, that should remain visible (call it the label), but I want to link it to another note that has a name that is not identical
I hit [[ to make the selection into a wikilink
I move the insertion point to the start of the phrase
I hit pipe and back arrow
I start typing the target note name
I either select the target note from the popup list or, if it doesn’t exist, type its name in its entirety and hit return
The result is [[target note name|label]] (and not [[target note name]], with the label discarded, as happens now)
If the user tries a different approach at present, not selecting the label text but simply placing the insertion point at its start, hitting [[ and typing the target note’s name, followed by a pipe, if the target note already exists, this causes ]] to be appended immediately, which is unwanted (because now the label text is not associated with the target anymore, being outside the square brackets). Only when the target not does not exist yet is this method of simply typing the target and the pipe and having it lock onto the label text working as expected.