diff --git a/zshrc b/zshrc index c887a4e..98ba060 100644 --- a/zshrc +++ b/zshrc @@ -185,7 +185,8 @@ fdr() { # Find in files with ripgrep and fzf frg() { - rg . | fzf + file=$(rg . --line-number | fzf | cut -d: -f1 -f2) + nvim $file } # fkill - kill process