mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
make it easier to git add fuzzy
This commit is contained in:
parent
4a8f41a151
commit
b4dc2f0d18
@ -4,6 +4,7 @@ function git-add-fuzzy
|
|||||||
--height 50% \
|
--height 50% \
|
||||||
-m \
|
-m \
|
||||||
--preview-window right:70% \
|
--preview-window right:70% \
|
||||||
|
--layout reverse \
|
||||||
--preview 'set -l IFS; set gd (git diff --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2)); if test "$gd"; echo "$gd"; else; bat --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2); end')
|
--preview 'set -l IFS; set gd (git diff --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2)); if test "$gd"; echo "$gd"; else; bat --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2); end')
|
||||||
and for gf in $gitfile
|
and for gf in $gitfile
|
||||||
set gf (echo $gf \
|
set gf (echo $gf \
|
||||||
|
Loading…
Reference in New Issue
Block a user