rc/tools/git add --column to git grep

This commit is contained in:
Bob Qi 2023-09-18 16:18:32 +08:00
parent 01fd6552af
commit 235552c5fa

View File

@ -352,7 +352,7 @@ define-command -params 1.. \
shift shift
enquoted="$(printf '"%s" ' "$@")" enquoted="$(printf '"%s" ' "$@")"
printf %s "try %{ printf %s "try %{
set-option current grepcmd 'git grep -n' set-option current grepcmd 'git grep -n --column'
grep $enquoted grep $enquoted
set-option current grepcmd '$kak_opt_grepcmd' set-option current grepcmd '$kak_opt_grepcmd'
}" }"