docs(fzf): add comment to explain why this works

This commit is contained in:
Stefan Imhoff
2022-07-12 21:27:42 +02:00
parent c5da5d4b9b
commit f20fa54452

3
zshrc
View File

@@ -183,7 +183,8 @@ fdr() {
cd "$DIR"
}
# Find in files with ripgrep and fzf
# Find in files with ripgrep and fzf and open on that line
# -> Works together with Vim Plugin bogado/file-line
frg() {
file=$(rg . --line-number | fzf | cut -d: -f1 -f2)
if [ "$file" != "" ]