mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
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)
@@ -96,7 +96,7 @@ vf() {
|
|||||||
vg() {
|
vg() {
|
||||||
local file
|
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 ]]
|
if [[ -n $file ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user