rg + fzf script. Fuzzy find files' contents
| locale | ||
| packaging | ||
| LICENSE | ||
| README.md | ||
| rgfzf | ||
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
- skim as interactive interface
- telescope for Neovim
- fzf examples
📝 License
BSD-3clause