diff --git a/Examples.md b/Examples.md index f5be8ba..e688ec1 100644 --- a/Examples.md +++ b/Examples.md @@ -83,6 +83,20 @@ vf() { } ``` +```sh +# fuzzy grep open via ag +vg() { + local file + + file="$(ag --nobreak --noheading $@ | fzf -0 -1 | awk -F: '{print $1 " +" $2}')" + + if [[ -n $file ]] + then + vim $file + fi +} +``` + ### Changing directory ```sh