Compare commits

...

2 commits

Author SHA1 Message Date
5a80d2706b
fish: conf.d/git-abbr: Don't grep in binary files 2024-07-12 17:47:17 +05:30
bab7ac5178
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.
2024-07-12 17:44:49 +05:30
4 changed files with 1 additions and 16 deletions

View file

@ -58,7 +58,7 @@ abbr ghh 'git help'
abbr gi 'git init' abbr gi 'git init'
abbr gjd 'git jump diff' abbr gjd 'git jump diff'
abbr gjm 'git jump merge' abbr gjm 'git jump merge'
abbr gjg 'git jump grep' abbr gjg 'git jump grep -I'
abbr gjw 'git jump ws' abbr gjw 'git jump ws'
abbr gignore 'git update-index --assume-unchanged' abbr gignore 'git update-index --assume-unchanged'
abbr gignored 'git ls-files -v | grep "^[[:lower:]]"' abbr gignored 'git ls-files -v | grep "^[[:lower:]]"'

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