Compare commits
No commits in common. "5a80d2706bb1419dbecef1127ed3553a2f339b4d" and "0a323f355f398a8e56195439727d89f76ecbab58" have entirely different histories.
5a80d2706b
...
0a323f355f
4 changed files with 16 additions and 1 deletions
|
@ -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 -I'
|
abbr gjg 'git jump grep'
|
||||||
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:]]"'
|
||||||
|
|
7
fish/.config/fish/conf.d/vgrep-abbr.fish
Normal file
7
fish/.config/fish/conf.d/vgrep-abbr.fish
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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
|
4
fish/.config/fish/functions/vgF.fish
Normal file
4
fish/.config/fish/functions/vgF.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
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
|
4
fish/.config/fish/functions/vgf.fish
Normal file
4
fish/.config/fish/functions/vgf.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
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
|
Loading…
Reference in a new issue