Use fzf and fzy to add fuzzy search tools to the shell

Conclusions

Both fzf and fzy are useful and practical tools capable of simplifying tasks in many areas. What I liked about fzf is the versatility of the feature set, the flexible options for defining the terminal layout, and in particular, the actions. What impressed me about fzy is its frugal approach and the optional ability to show scores. But both tools lack the ability to influence the algorithms in a targeted way, in contrast to, say, agrep.

Infos

  1. Levenshtein distance: https://en.wikipedia.org/wiki/Levenshtein_distance
  2. "Better Finds" by Karsten Günther, Linux Magazine, issue 184, March 2016, https://www.linux-magazine.com/Issues/2016/184/agrep
  3. "Tutorial – ugrep" by Karsten Günther, Linux Magazine, issue 245, April 2021, https://www.linux-magazine.com/Issues/2021/245/Tracked-Down/(language)/eng-US
  4. fzf: https://github.com/junegunn/fzf
  5. fzy: https://github.com/jhawthorn/fzy
  6. lesspipe: https://github.com/wofr06/lesspipe

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Fuzzy Finder

    Simplify your searches and get better results with fzf, a modern search tool based on fuzzy logic.

  • Tracked Down

    Searching for text in files or data streams is a common and important function. Ugrep tackles this task quickly, efficiently, and even interactively if needed.

  • McFly

    When it comes to working at the command line, using Bash history effectively can save you time. McFly extends the Bash history's features and helps you find past commands more quickly.

  • Worker

    Worker, a file manager with more than 20 years of development, has evolved into a tested, powerful, and functional tool.

  • KTools: Beagle Helpers

    If you have given up hope of ever finding your way around the mess of data on your desktop, a desktop search engine can help you penetrate the gloom. Kerry and KBeaglebar bring the Beagle engine to the KDE desktop.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News