rg + fzf script. Fuzzy find files' contents
Find a file
2023-06-09 20:12:03 +00:00
locale Added gettext translations for Spanish 2022-08-11 03:54:37 +00:00
packaging build: fix names of dependencies in PKGBUILD 2023-06-09 13:28:43 +00:00
LICENSE Initial commit 2022-08-11 03:47:10 +00:00
README.md docs: update README with see also section 2023-06-09 20:12:03 +00:00
rgfzf fix: remove sourcing since getoptions will be either a runtime or build dependency 2023-06-09 13:04:45 +00:00

rgfzf

Fuzzy find files' contents in your terminal

📰 Description

A small script to combine ripgrep (or ripgrep-all) and fzf to fuzzy find lines of files recursively under the current directory, and select its file name

🚀 Installation

📦 Manually
  • Dependencies:
    • bash
    • rg or you may just simply GNU grep
    • fzf
    • getoptions
    • bat, optional for previews
    • rga, optional (and its optional dependencies) for searching files other than plain text ones
curl -O https://codeberg.org/tplasdio/rgfzf/src/branch/main/rgfzf
sudo mv rgfzf /usr/bin/local/rgfzf
sudo chmod +x /usr/bin/local/rgfzf
Arch Linux or other pacman distros
curl -O https://codeberg.org/tplasdio/rgfzf/raw/branch/main/packaging/PKGBUILD-git
PACMAN=yay makepkg -sip PKGBUILD-git  # ← or your AUR helper

For uninstallation, run sudo pacman -Rsn rgfzf-git.

Usage

rgfzf           # Fuzzy find lines of files
rgfzf 'search'  # Having first filtered for some search term
rgfzf -p        # With a preview window
rgfzf -d        # Enable filter switching between fzf and rg
rgfzf -e        # Open with $EDITOR after selection
rgfzf --rg=rga  # Using rga to search in files other than plain text
rgfzf --help    # Other options

👀 See also

📝 License

BSD-3clause