[X] Please check to see if this issue already exists.
[X] It's a single bug. Do not report multiple bugs in one issue.
[X] It's a frontend issue, not a backend issue; Otherwise please create an issue on the backend repo instead.
Summary
When only a single @ is used, autocompleting usernames for mentions works and the text is replaced as desired.
When a second @ is added at the end to indicate the end of the username, which separates the username from the instance name, this gets treated as the start of the mention once again, rather than extending the previous mention autocomplete.
Click autocomplete option, which inserts [@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers)
Start new mention, type @threelonmusketeers@
Autocomplete suggests the same. Sometimes this also moves the autocomplete suggestion to the second @ instead of the first one
Clicking the autocomplete option inserts [@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers) in the place of the second @, leaving @threelonmusketeers[@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers) as the full text
Start a new mention, type @threelonmusketeers@sh
Autocomplete only searches for the text after the second @
I don't have time to work on this one, but the autocomplete was never supposed to work with multiples of the same symbols (and I have no idea how that would work).
Requirements
Summary
When only a single
@
is used, autocompleting usernames for mentions works and the text is replaced as desired. When a second@
is added at the end to indicate the end of the username, which separates the username from the instance name, this gets treated as the start of the mention once again, rather than extending the previous mention autocomplete.Raised from https://sh.itjust.works/comment/13097608
Steps to Reproduce
Type
@threelon
in a commentAutocomplete suggests
@threelonmusketeers@sh.itjust.works
Click autocomplete option, which inserts
[@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers)
Start new mention, type
@threelonmusketeers@
Autocomplete suggests the same. Sometimes this also moves the autocomplete suggestion to the second
@
instead of the first oneClicking the autocomplete option inserts
[@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers)
in the place of the second@
, leaving@threelonmusketeers[@threelonmusketeers@sh.itjust.works](https://sh.itjust.works/u/threelonmusketeers)
as the full textStart a new mention, type
@threelonmusketeers@sh
Autocomplete only searches for the text after the second
@
Technical Details
Firefox 128.0.3
Lemmy Instance Version
0.19.5
Lemmy Instance URL
https://voyager.lemmy.ml