From a9dcae3f5b7116e07ffb42394796916b6df70a08 Mon Sep 17 00:00:00 2001 From: Janek Schleicher <16211159+hanfried@users.noreply.github.com> Date: Thu, 27 Sep 2018 14:45:52 +0200 Subject: [PATCH] fixed bug: awk part of vg should parse out first element of fzf that is filename, but the given source adds a " +" plus anything that's in 2nd element (== linenr) --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index c07d2dd..d7088e4 100644 --- a/Examples.md +++ b/Examples.md @@ -96,7 +96,7 @@ vf() { vg() { local file - file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1 " +" $2}')" + file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1}')" if [[ -n $file ]] then