Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Order command palette results by matching score #28

Closed
nicktimko opened this issue Feb 2, 2015 · 8 comments
Closed

Order command palette results by matching score #28

nicktimko opened this issue Feb 2, 2015 · 8 comments

Comments

@nicktimko
Copy link

When searching for commands in the palette, the order is usually baffling (see #2). Short of #18, which requires use in order to get tuned, I propose ordering the commands by how well they match the search term. Ideally if I type a word, if it exists, unbroken, and perhaps in it's entirety, I would expect to see those results above Find And Replace: Select All

I do like the idea of #18, but one can argue about the UX, a la the adaptive menus in Office 2000 wherein shuffling around commands should be done with care. This proposes to keep a fixed order for any given search term.

image

@alexchandel
Copy link

This issue is infuriating, and it makes demos of Atom go hilariously bad.

A: Watch how easy it is to install packages!
<Cmd+P, i,n,s,t,a,l,l>
A: ...
B: I'm gonna stick to X, thanks.

@FunkMonkey
Copy link

👍

The package that is used for fuzzy matching, atom/fuzzaldrin, even provides a scorer. Implementing it should thus be relatively easy. Dunno about performance though...

@jcuenod
Copy link

jcuenod commented Nov 13, 2015

Is anything happening on this because infuriating is a good word to describe this issue...

@winstliu
Copy link
Contributor

@jcuenod Make sure you're on Atom 1.2.0, then go to the Command Palette settings and enable the Alternate Scoring option.

@jcuenod
Copy link

jcuenod commented Nov 13, 2015

Hmm, I'm on 1.2.0 but I'm not seeing an alternate scoring option under the Command Palette settings. The only setting I see is to enable (or rather, disable) the keybinding.

@winstliu
Copy link
Contributor

Ah, I see now. Unfortunately, that option didn't make it into 1.2.0. It should be in the 1.3.0 betas though if you want to try those.

@jcuenod
Copy link

jcuenod commented Nov 13, 2015

Okay, thanks. I'll have a go but I kind of like having a mostly-stable editor :)

@lee-dohm
Copy link
Contributor

This has been fixed for a while now and the alternate scoring is the default. Closing.

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

No branches or pull requests

6 participants