Add ctrl-y keybinding on forgit::log.

Former-commit-id: 43522b9ace
This commit is contained in:
Wenxuan 2018-07-20 15:39:50 +08:00
parent 0d34ff50f8
commit 9b6e5a8b27

View file

@ -59,6 +59,7 @@ forgit::log() {
eval "git log --graph --color=always --format='%C(auto)%h%d %s %C(black)%C(bold)%cr' $@ $forgit_emojify" |
forgit::fzf +s +m --tiebreak=index \
--bind="enter:execute($cmd |LESS='-R' less)" \
--bind="ctrl-y:execute-silent(echo {} |grep -o '[a-f0-9]\{7\}' |pbcopy)+abort" \
--preview="$cmd"
}