feat(fzf): jump directly to line number of Ripgrep search result

This commit is contained in:
Stefan Imhoff
2022-07-12 21:11:55 +02:00
parent 99344f0c90
commit 32a286577c

3
zshrc
View File

@@ -185,7 +185,8 @@ fdr() {
# Find in files with ripgrep and fzf # Find in files with ripgrep and fzf
frg() { frg() {
rg . | fzf file=$(rg . --line-number | fzf | cut -d: -f1 -f2)
nvim $file
} }
# fkill - kill process # fkill - kill process