mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-13 08:46:17 -04:00
Add ctrl-y keybinding on forgit::log.
This commit is contained in:
parent
72fc7f4c51
commit
43522b9ace
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue