-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Adapt Helm to use flx for better fuzzy matching #3327
Comments
Using |
Yes I'm sure it works, and works as you described. But you must not execute |
Wow. Nice thing. Any chance that it will be part of Spacemacs? |
Any update on this? I found Helm somewhat faster after enabling flx. |
We can easily update now. @PythonNut added a package for it: https://github.com/PythonNut/helm-flx |
Great to hear. |
are we doing this? <3 I see nobody objected this. |
The PR is up there at least. |
Unfortunately it appears that See incident #3500 where this problem appears in |
I do not have this issue, even for 50k candidates, on both OS X/Linux. I am also using latest develop. Maybe you should try on stock Spacemacs to see if the problem occurs? |
@tuhdo You repeated a single character into the input buffer 25 times and got 50k candidates? I don't think you are talking about the same input as I am. I am talking about the length of the input field. Of course, for I have completely wiped my System Info
(emacs-lisp git) |
Surely I can reproduce the issue though. Basically what I did: cd ~
mkdir yolloyollo && cd yolloyollo
# Repeat about 20 times Then go to |
if you are gonna type the whole path, why use fuzzy search? for full path I use |
I can't even |
I still can't reproduce according to @TheBB instructions. In this demo, you can see that when I type However, @PythonNut confirmed this issue and made a fix, so it did exist and I'm glad it got fixed so quickly. |
Admittedly, I haven't reproduced the bug myself either. I do know that flx has horrible asymptotic complexity over the length of the input. I assume that you need to invoke a recursive file finder to run into the bug. |
Note that helm-flx won't give good results when the number of matches exceeds |
@PythonNut -- @tuhdo is the a ninja with |
Yeah, that's unfortunate. I see the same, and I had to update packages this morning to reproduce it, so it must be a recent change. |
@PythonNut I assume it's due to PythonNut/helm-flx@bf4943e. |
Works around it for now. |
@cpaulik @TheBB should be fixed now, sorry.
@robbyoconnor no of course. Everyone knows tuhdo is a ninja. However, the process for getting code merged into |
Thanks!
Oh, I believe you. :-/ |
You guys may be interested in disabling |
Appreciate it. Related commit: e776ada The update hasn't reached MELPA yet but it'll catch on when it does. |
I just learned this the hard way when trying to fix the problem from #3327 (comment). After spending a couple of days addressing his concerns I asked him if there was anything else that needed to be done. His reply was that although he hasn't really had time to look at the code, it still has (unspecified) "errors", that he suspects performance is bad (It's fine, he didn't actually try it), and that he really thinks a better way to fix the problem would be... to implement exactly what I described, explained, and implemented. Sorry, life's too short. I tried... |
@ghost would you like to push the changes to |
@PythonNut, thanks, It's a package now (Please Ignore my shifting username): https://github.com/EphramPerdition/helm-fuzzier The README recommends it be used together with I'd like a few folks to try it out and report whether it breaks something for them before pushing it to MELPA.
|
@EphramPerdition Thanks, I'm trying it out. So far so good. |
Great, "works for me" is just as useful as a bug report at this point. |
Is there any case where you would use |
@PythonNut, you can use it without Note that each of these packages touches a different part of helm. |
As of lewang/flx#78, |
I already created this thread on Reddit. If you already use
ido
, you know thatflx
vastly improve Emacs experience.The text was updated successfully, but these errors were encountered: