Closed SamHasler closed 11 years ago
If I type "@C" then Charlie should be at the top of the list. On Dec 14, 2012 6:14 PM, "Jacob Kelley" notifications@github.com wrote:
@SamHasler https://github.com/SamHasler What do you mean? Results are sorted by highest match.
— Reply to this email directly or view it on GitHubhttps://github.com/jakiestfu/Mention.js/issues/2#issuecomment-11386232.
I see how that can be deemed an issue, but after much thought, I'm deciding to leave it the way it is. The nature of other services like Twitter, Facebook, and Instagram all allow matching of characters that don't necessarily start with the specified character, which I feel is very useful
I don't think I've explained very well. Let me try again. I'm not saying only show starts-with matches. I'm saying do both, but put the matches with the search term at the start at the top of the list.
E.g. after typing "@c" the list might be :
Charlie, Conlin MissCJ YoungReckless RickyBahner HackMurphy NikRichie
This puts the names that the user is more likely to be typing first.
Note also how MissCJ is next. You could sort matches with capitals after lowercase above other matches as they are also more likely what the user wants. On Dec 19, 2012 6:02 AM, "Jacob Kelley" notifications@github.com wrote:
I see how that can be deemed an issue, but after much thought, I'm deciding to leave it the way it is. The nature of other services like Twitter, Facebook, and Instagram all allow matching of characters that don't necessarily start with the specified character, which I feel is very useful
— Reply to this email directly or view it on GitHubhttps://github.com/jakiestfu/Mention.js/issues/2#issuecomment-11518666.
@SamHasler I have updated the script and the documentation to reflect the new "sensitivity" feature that sorts results based off of various conditions.
Sweet!
@SamHasler What do you mean? Results are sorted by highest match.