From 32a286577c0acd8f530736fed7b84d18a66cfac8 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Tue, 12 Jul 2022 21:11:55 +0200 Subject: [PATCH] feat(fzf): jump directly to line number of Ripgrep search result --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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