commit 6bfeebed8adc2cbe7889d647c50a2b302d37caa3 parent 25114a239e492384a008924708c21b6fcb3a9a9b Author: Lucas Burns <burnsac@me.com> Date: Tue, 8 Jun 2021 14:33:59 -0500 zsh needs completely redoe Diffstat:
M | fzfgit.plugin.zsh | | | 50 | +++++++++++++++++++++++++------------------------- |
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/fzfgit.plugin.zsh b/fzfgit.plugin.zsh @@ -160,28 +160,28 @@ zle -N fzfgit-flog _widget_fzfgit_flog zle -N fzfgit-fzgrep _widget_fzfgit_fzgrep zle -N fzfgit-fstat _widget_fzfgit_fstat -_widget_git_transform_fzfgit() { - local fzfgit_cmd new_cmd - fzfgit_cmd=$(alias | grep fzfgit | cut -d'=' -f1 | head -n 1) - [[ -z "${fzfgit_cmd}" ]] && fzfgit_cmd="fzfgit" - fzfgit_cmd="${fzfgit_cmd} -g" - BUFFER=$(echo "$BUFFER" \ - | awk -v fzfgit="${fzfgit_cmd}" '{ - if ($1 == "git") { - $1=fzfgit - if ($2 ~ /(log|add|reset|checkout|status|stash|grep|untrack|stat)/) { - if ($2 == "status"){ - $2="stat" - } else if ($2 == "grep"){ - $2="zgrep" - } - $2="f"$2 - } - } - print $0 - }' - ) - zle end-of-line -} - -zle -N fzfgit-transform _widget_git_transform_fzfgit +# _widget_git_transform_fzfgit() { +# local fzfgit_cmd new_cmd +# fzfgit_cmd=$(alias | grep fzfgit | cut -d'=' -f1 | head -n 1) +# [[ -z "${fzfgit_cmd}" ]] && fzfgit_cmd="fzfgit" +# fzfgit_cmd="${fzfgit_cmd} -g" +# BUFFER=$(echo "$BUFFER" \ +# | awk -v fzfgit="${fzfgit_cmd}" '{ +# if ($1 == "git") { +# $1=fzfgit +# if ($2 ~ /(log|add|reset|checkout|status|stash|grep|untrack|stat)/) { +# if ($2 == "status"){ +# $2="stat" +# } else if ($2 == "grep"){ +# $2="zgrep" +# } +# $2="f"$2 +# } +# } +# print $0 +# }' +# ) +# zle end-of-line +# } +# +# zle -N fzfgit-transform _widget_git_transform_fzfgit