-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention plugin should allow autocomplete with space #9741
Comments
Issue fixed in #11017 Mention plugin didn't allow spaces because of regexp for matching mentions in currently edited text that only allowed visible characters to occur after a mention mark. Take this case:
Regexp allowing space would match @foo as well as #bar. After playing a little bit with regexp to handle that case it quickly got overcomplicated and still had some other edge cases so I had to withdraw from this approach. Previously regexp to match mention tested entire text node till caret but what we really needed to test is just a text since last valid marker in text. But yet again, case with multiple markers complicated it a little bit. Previously there was a |
…on-plugin Fix (mention): The mention plugin now allows searching mentions that include space characters. Closes #9741.
Hi @robjbrain! Thanks for the suggestion. However, this issue is solely about handling mentions with spaces and a quick win we can have there. Your idea goes well beyond this and would need a separate ticket. |
📝 Provide a description of the new feature
Currently, when you press
spacebar
while using the mention feature it will hide the dropdown and add space after what has been written - this is behaving exactly like mentions on GitHub.However, it could be a more natural user experience if it would be working in a different way - where you can add space after for example @Barney (following the example from editor 2 - on features/mention page in docs) and still be able to filter the feed to select
Barney Stinson
from the dropdown.This issue was already discussed partially here: #7306 - but that issue was created to resolve a slightly different problem, so I'm extracting this as a separate one.
Mentioning @EricPaulson and @robjbrain as you gave the most recent feedback regarding this and might want to leave a 👍 reaction.
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: