When composing a message, username @ mentions autocompletion should automatically add a white space when typing afterwards
Steps to reproduce
- Enter a room
- Write this:
I think @bob
- Press
Tab
to autocomplete toI think @bobby
- Immediately continue typing, "won't be able to un-see this"
Actual result
The string is missing a space after the user mention: I think @bobbywon't be able to un-see this
...unless you manually add a space yourself after the autocompletion, but 1) it's easy to not notice while writing 2) it's useless work that the software should do for me.
Expected result
Element (and most other chat UIs I've seen) simply adds the space from the get-go; however, Fractal could be smarter here, and auto-add the space only when needed, i.e. when the user types a character that isn't:
- a whitespace;
- an apostrophe (
'
or the typographic one, for when you sayWhat about @Schwartz's Deli
); - a period/dot or comma (because the user will naturally type a space afterwards anyway);
- a colon or semicolon (for the same reason);
- a hyphen or slash (for compound words);
- some other special character meant to stick next to the username "pill".
If the user is chaining up multiple user mentions like Hey @bobby@afranke@alice
it should probably automatically post-facto separate them by spaces or commas+spaces, too.
Information
- Fractal Version: 5
- OS Version: Fedora 39
- Installation Source: Flathub
- Homeserver: matrix.org / any?
Edited by Jeff Fortin