Skip to content
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 autocompletion #274

Closed
edemaine opened this issue Dec 15, 2017 · 2 comments
Closed

@mention autocompletion #274

edemaine opened this issue Dec 15, 2017 · 2 comments

Comments

@edemaine
Copy link
Owner

Requested in 6.851

@jbosboom
Copy link

Also requested from 6.892!

Some usernames don't correspond well to user (human) names, so ideally the autocomplete can search through both. That is, typing @jeffrey might suggest, along with any usernames starting/containing that string, also @jbosboom because it matches Jeffrey Bosboom. For each line in the autocomplete list, you can indicate what is being matched by bolding the matched substring; then lines can be sorted by how well-matched they are.

@edemaine
Copy link
Owner Author

Here's some documentation about how we can do this in CodeMirror:

https://stackoverflow.com/questions/13744176/codemirror-autocomplete-after-any-keyup

The tricky part seems to be deciding when to display the autocompletion hints. Presumably when you entered a key (including backspace) in a word starting with @. This seems to be Github's behavior (including completion by name, which stops when you hit space, so can only do one name).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants