fish: Drop all usages of vgrep

While we have been using vgrep for quite a while it has become
increasingly annoying since it uses a global cache instead of
a different cache for each directory which means using vgrep
to search across different directories at the same time is
absolutely useless.
This commit is contained in:
Sanchayan Maity 2024-07-12 14:15:06 +05:30
parent 0a323f355f
commit bab7ac5178
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3
3 changed files with 0 additions and 15 deletions

View file

@ -1,7 +0,0 @@
abbr vg vgrep
abbr vs vgrep -s
abbr vgi vgrep --interactive
abbr vgng vgrep --no-git
abbr vgnr vgrep --no-ripgrep
abbr vgnh vgrep --no-header
abbr vgnl vgrep --no-less

View file

@ -1,4 +0,0 @@
function vgF --wraps=vgrep --description 'vgrep search with fzf'
set -f INITIAL_QUERY $argv[1]
FZF_DEFAULT_COMMAND="vgrep --no-header $INITIAL_QUERY" fzf --bind "Ctrl-d:half-page-down,Ctrl-u:half-page-up,change:reload:vgrep --no-header {q} || true" --ansi --phony --tac --query $INITIAL_QUERY | awk '{print $1}' | xargs -I{} -o vgrep --show {}
end

View file

@ -1,4 +0,0 @@
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