dotfiles/fish/.config/fish/functions/vgf.fish

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
255 B
Fish
Raw Permalink Normal View History

function vgf --wraps=vgrep --description 'vgrep search with fzf'
set -f INITIAL_QUERY $argv[1]
vgrep --no-header $INITIAL_QUERY | fzf --ansi --bind "Ctrl-d:half-page-down,Ctrl-u:half-page-up" | awk '{print $1}' | xargs -I{} -o vgrep --show {}
end