Created
March 26, 2026 02:51
-
-
Save zhangchitc/8c1ad96bf5a00f32e355454cfcf4841e to your computer and use it in GitHub Desktop.
rgf()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ripgrep wrapper | |
| function rgf() { | |
| rg -l "$1" | fzf --preview "rg -n --color=always -C 3 '$1' {}"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment