[Bug] Selecting alias of the same name as the contact filename from popup list enters link to [[contact]]
not [[contact|contact]]
#32
Labels
bug
Something isn't working
Describe the bug
If I have a contact file named
@bob
and it also hasaliases: [ "@bob" ]
, typing the characters@bo
into a note shows the suggestions popup list with two@bob
s listed, only one with an arrow next to it indicating that it's an alias. Selecting the alias link to@bob
from this list enters[[@bob]]
into the note when it should be entering[[@bob|@bob]]
.If the alias was something else, e.g.
"@bob2"
, then selecting the alias link to@bob
would enter[[@bob|@bob2]]
. It seems the plugin is choosing to ignore entering the alias if it's identical to the contact filename when arguably this shouldn't be happening, hence a bug report rather than a feature request. I'm picking the alias@bob
after all, not the@bob
note which is also listed in the popup.So far I've been linking via wikilink syntax instead of using the @ symbol: Typing
[[@bo
suggests the alias@Bob
and correctly enters[[@bob|@bob]]
.To Reproduce
Steps to reproduce the behavior:
@bob
."@bob"
.@bo
, select the@bob
alias link (has an arrow next to it).[[@bob]]
not[[@bob|@bob]]
.Expected behavior
[[@bob|@bob]]
.Screenshots
-
In case it matters, I have the "Include @ symbol" option disabled for the plugin.
Aha. This looks to be related to #14, which was fixed, but the fix was too broad it seems. If "Include @ symbol" is disabled, it shouldn't prevent an alias of the same name being entered, i.e.
[[@bob|@bob]]
. If "Include @ symbol" is disabled and there is no"@bob"
alias, just enter[[@bob]]
. If "Include @ symbol" is enabled, we'd also expect[[@bob|@bob]]
, even when the file doesn't specify an"@bob"
alias.Thanks.
The text was updated successfully, but these errors were encountered: