[LRUG] @mentions

Andrew Stewart boss at airbladesoftware.com
Thu Nov 27 05:00:48 PST 2014


Hello LRUG!

(This isn't a Ruby question.)

I would like to implement GitHub-style @mentions in my Rails app.  I'm not sure how to do the autocompleting dropdowns in the textareas.

I first tried to figure out what GitHub uses but didn't make much headway.  After that I looked around for prior art but could only find jquery plugins which haven't been updated for two years or more and have lots of open issues gathering dust.

I'm looking for something which:

- triggers when an @ is typed after a word break
- loads a list of people (max 15-20)
- shows the list in a dropdown at the cursor position
- lets you navigate with arrow keys and hit tab/enter to autocomplete

Any suggestions?

Many thanks in advance,

Andy Stewart


More information about the Chat mailing list