From: Le Wang <l26wang@gmail.com>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: flx -- flex with better sorting
Date: Thu, 2 May 2013 01:27:48 +0800 [thread overview]
Message-ID: <CAM=K+ipf6P_OEavgHRqbGriEaSwQxdcqLm6ykwrKLu7MKouwSg@mail.gmail.com> (raw)
In-Reply-To: <87bo8uoclh.fsf@wanadoo.es>
[-- Attachment #1: Type: text/plain, Size: 2453 bytes --]
On Thu, May 2, 2013 at 1:04 AM, Óscar Fuentes <ofv@wanadoo.es> wrote:
> Le Wang <l26wang@gmail.com> writes:
>
> >> 4. Sometimes it fails to work as advertised. For instance, if I type
> >> `ltx' this file is shown first on the list of matches:
> >>
> >> lib/Target/NVPTX/NVPTXLowerAggrCopies.h
> >>
> >> but I would expect
> >>
> >> lib/Target/X86/* (* meaning any file under that subdirectory).
> >>
> >
> > 1. The algorithm favors basepaths heavily.
> > 2. I ended up considering all capitals to be beginning of word.
> >
> > This means ltx is matching as expected. As you supply more letters,
> better
> > results should float to the top.
>
> Okay. Knowing this makes for a much more effective usage.
>
> >> 5. Another quirk is that it rejects capital letters. For instance, if I
> >> type `lT' it shows no matches, but in fact there are lots of files
> >> like this:
> >>
> >> lib/Target/...
> >>
> >> Actually, typing just `T' fails to find any candidate, but there are
> >> lots files with a capital T on its name.
> >>
> >
> > I hadn't considered people might do this. :-) Will fix soon.
>
> Ideally, when using capital letters those candidates that matched case
> would get higher points.
>
I fixed this bug. Capital letters are considered word beginnings so they
are always preferred.
More quirks:
>
> C-s, C-r etc stops working on ido after enabling flx.
>
I opened a bug on github to track this.
>
> One Emacs instance started to quickly use memory and had to kill it when
> noticed that the system was furiously paging. That Emacs instance was
> doing nothing, just showing a prompt of 3 candidates for kill-buffer.
>
It'd be good to get repro steps for this.
With ido, C-x k (kill-buffer) usually offers the current buffer as the
> first candidate. After activating flx, that's not necessarily so.
>
The completion list should change until you hit the first letter. After
that flx takes over sorting. Is this what you're seeing?
> While navigating directory trees with find-file, at certain point no
> candidates where listed as soon as any string was entered. With no
> input, all candidates were shown. I was unable to replicate the problem.
>
I opened a bug on github to track this. But I don't actually use ido, so
it may take some time to get around to this. Follow up in the bug if you
have more repro details.
Thanks.
--
Le
[-- Attachment #2: Type: text/html, Size: 4107 bytes --]
next prev parent reply other threads:[~2013-05-01 17:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 15:01 flx -- flex with better sorting Le Wang
2013-05-01 16:04 ` Óscar Fuentes
2013-05-01 16:26 ` Le Wang
2013-05-01 17:04 ` Óscar Fuentes
2013-05-01 17:27 ` Le Wang [this message]
2013-05-01 18:16 ` Óscar Fuentes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM=K+ipf6P_OEavgHRqbGriEaSwQxdcqLm6ykwrKLu7MKouwSg@mail.gmail.com' \
--to=l26wang@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.