fzy icon indicating copy to clipboard operation
fzy copied to clipboard

Added a few new features

Open leo-arch opened this issue 2 years ago • 7 comments

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 avatar Apr 18 '22 07:04 leo-arch

@leo-arch Thank you! I hope this PR will be accepted ASAP! :)

data-man avatar May 06 '22 02:05 data-man

Checking on the likelihood of this getting merged

shmup avatar Jul 18 '22 19:07 shmup

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.

vanopen avatar Jun 06 '23 01:06 vanopen

Time to create a fork of fzy. Maybe fzy-ng? :)

data-man avatar Jun 06 '23 05:06 data-man

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.

leo-arch avatar Jun 06 '23 06:06 leo-arch

fnf++

:)

data-man avatar Jun 06 '23 06:06 data-man

Fnf has just been born: https://github.com/leo-arch/fnf.

leo-arch avatar Jun 06 '23 07:06 leo-arch