Autocomplete for usernames should handle punctuation better
Right now when you try to @-mention someone, and then put punctuation for example or a comma or a period, it auto-completes in a very frustrating way.
To reproduce, do the following:
- Autocomplete someones username in an issue (using tab, for example)
- Autocomplete automatically puts a space, which you don't want. So backspace it off.
- Now autocomplete pops up again, and type in a period
.
- Autocomplete updates its recommendations to show the generic list, for example
@all
, since it now matches nothing. - If you were to autocomplete again, it would give you the wrong autocomplete
This is a frustrating experience personally. My console-derived habit of tab-completing everything makes my initial reaction to tab-complete after the period incorrect. I instead have to re-train myself to use spacebar, which does not cause the incorrect autocomplete to apply.
I wonder if we can figure out a better way to approach this:
- If there were valid autocomplete selections before, and now nothing matches, don't show the "all list". Perhaps just show nothing.
- Maybe something else I can't think of right now =)