fzy
fzy copied to clipboard
Added a few new features
Hi @jhawthorn. First of all, great work! Simple, lightweight, hackable, and written in C.
Straight to the point. I added a few new features:
- Multi-selection. There's a previous pull request for this, but was never merged.
- Results/matches/window left padding
- A few command line switches to modify standard TAB, left, and right arrow keys behavior
- Cyclic scrolling (defaults to disabled)
- Pointer and marker customization
- Basic color support (it runs colored by default now, but you can disable colors via
--no-color
). Colors are customizable via a specific environment variable (FZY_COLORS).
I've tried to document all this in the manpage as detailed as possible.
I can guarantee it works. I'm using it myself as an alternative TAB completion mechanism (using the above features to perform the integration) for my file manager (CliFM): it supports readline's default completion, FZF, and now FZY.
Though still experimental, you can try it running CliFM (latest git version) with the --fzytab
command line option (it will look for the fzy
binary in PATH
).
@leo-arch Thank you! I hope this PR will be accepted ASAP! :)
Checking on the likelihood of this getting merged
Thanks for the extra features. Could you please add cli option to output a different version infomation, so I could ditinguish your version from the original version? So I could implement different options in my scripts according to the version installed.
Time to create a fork of fzy. Maybe fzy-ng? :)
Considering that there seems to be some real interest on these new features, it might be a good idea.
As to the name, what about fzx
? Short and easy to type. I looked for fzz
, but there's another project using this name. Or maybe fzs
; it's available as well (it might stand for either fuzzy searcher
or fuzzy seeker
). fnf
(recursive acronym for fnf's not fzy
) could also be cool.
fnf++
:)
Fnf
has just been born: https://github.com/leo-arch/fnf.