DEV Community

Oliver Burn
Oliver Burn

Posted on

2 1

fzf is my tool discovery of 2018

This year I discovered the command-line tool fzf by accident while experimenting with Vim plugins (long story).

In the words of the website:

It's an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc.

It very quickly become an indispensable tool that I use on Linux and macOS. Examples of how I use it are:

  • Search my command history.

  • Combined with z it makes it trivial to navigate around previous directories.

  • I use the following script to select an account from the file accounts.ledger before running ledger.

#!/bin/bash
account=$(sed 's/^account //' accounts.ledger | fzf)
if [[ $account != "" ]]; then
    ledger reg $account "${@}"
fi

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay