[announce] gpicker -- a tool to quickly choose file in project by typing few keys
- From: Aliaksey Kandratsenka <alkondratenko@xxxxxxxxx>
- Date: Mon, 27 Oct 2008 14:11:39 -0700 (PDT)
Hi.
I've recently released gpicker 1.0. This thing allows you to quickly
open any file in project.
Files are searched by their basename, but patterns containing '/'
automagically turn on matching of directory name.
It's advantages over alternatives is 'smart' ordering of matches,
support for matching directory names and speed.
It’s base filtration is similar to InteractivelyDoThings flex
matching. But it places great emphasis on ‘correctly’ ordering
matching names. It tries to place contiguous matches and matches on
word beginnings before all other matches. It is also possible to
emphasize word beginning in pattern by capitalizing first character
(so ’ClLoad’ will score hugely on ’ClassLoader’), or by placing
delimiter before it (‘s-w-m’ for ‘several-words-matching’). See
its README for more details and examples. Examples in pictures can
also be seen here -- http://alkandratsenka.blogspot.com/2008/10/gpicker-tale.html.
I've been using it for already few months and it served me extremely
well.
It’s implemented as gtk program and few emacs lisp functions which
invoke it. This approach has it's benefits -- speed of C and pretty
UI,
but it's drawback is small lag while program starts. In some rare
cases (or on cold machine) it's possible to type few chars before
gpicker window appears. I've minimized probability of this case by
trying to display UI as fast as possible and by loading file list only
after that, but it's still can happen.
Before you try it, please note, that it loads complete file list of
selected project on every run, which on cold machine and large project
can take few seconds. So, please, make your conclusion regarding it's
speed after running it at least twice.
Also note that I've tested in on GNU/Linux only, and I haven't
bothered to make it very portable by not avoiding GCC extensions.
Also file list is fetched by popen-ing 'find' and I haven't checked if
find arguments I use are portable beyond GNU. But all this is of
course easily fixable if somebody is interested.
It can be downloaded from http://github.com/alk/gpicker/tree/master .
Emacs integration instructions are given in included gpicker.el file.
.
- Follow-Ups:
- Prev by Date: Re: elisp exercise: toggle-letter-case
- Next by Date: Re: [announce] gpicker -- a tool to quickly choose file in project by typing few keys
- Previous by thread: byte-compile a bunch of files
- Next by thread: Re: [announce] gpicker -- a tool to quickly choose file in project by typing few keys
- Index(es):
Relevant Pages
|