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

Auto-complete sort does not prefer exactly matching prefix #1161

Open
dnrce opened this issue Jun 25, 2014 · 2 comments
Open

Auto-complete sort does not prefer exactly matching prefix #1161

dnrce opened this issue Jun 25, 2014 · 2 comments
Labels
Enhancement ⚡️ New features, big or small.
Milestone

Comments

@dnrce
Copy link
Member

dnrce commented Jun 25, 2014

Migrated from the original issue at https://www.assembla.com/spaces/tracks-tickets/tickets/1161

The results from auto-complete do not put the match that has the exact prefix on top.

This bothers me, because my system has an unique two-letter code for each context to quickly enter actions. For example, I have the following contexts:
sc Steven - Computer
mc Meike - Computer
ac Allebei - Computer
Ongesorteerde acties

The last context is used to dump actions in for later processing. Now, suppose I enter a new action that I want to put in "Allebei - Computer". I'm used to typing "ac" in the context field, waiting for auto-complete to offer suggestions and then hit return to accept the first match. However, the first match will not be "ac Allebei - Computer" (the expected result) but "Ongesorteerde acties" (which also contains 'ac').

What should the sort order be? Am I right that exact prefixes should be preferred? Where in the code is this dealt with?

Originally reported by zteven on May 5, 2011 at 08:07:29 (-0700)

@dnrce dnrce added this to the 3.0 milestone Jun 25, 2014
@dnrce
Copy link
Member Author

dnrce commented Jun 25, 2014

On May 5, 2011 at 10:14:25 (-0700), lrbalt commented:

I'd rather not change this right before the release. The code is generic and uses include? construct for ruby strings, see app/controllers/application_controller.rb on line 110, which is called from the context_controller and project_controller in the index methods

@dnrce
Copy link
Member Author

dnrce commented Jun 25, 2014

On May 5, 2011 at 10:16:02 (-0700), lrbalt commented:

try putting a @ sign before the ac, so you can type @ac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ⚡️ New features, big or small.
Projects
None yet
Development

No branches or pull requests

1 participant