Add built-in binding for files command to log command
This commit is contained in:
parent
ad103887ec
commit
dec99a2431
@ -1,7 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
CWD="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
show_diff="git log --color=always -n 1 {1}; seq -s_ 150|tr -d '[:digit:]' && \
|
show_diff="git log --color=always -n 1 {1}; seq -s_ 150|tr -d '[:digit:]' && \
|
||||||
git diff --color=always {1}~ {1}"
|
git diff --color=always {1}~ {1}"
|
||||||
|
|
||||||
git log --color=always --format="%C(auto)%h %s" | fzf --ansi \
|
git log --color=always --format="%C(auto)%h %s" | fzf --ansi \
|
||||||
--preview="$show_diff" --preview-window=right:55%
|
--preview="$show_diff" --preview-window=right:55% \
|
||||||
|
--bind "ctrl-t:execute($CWD/files.sh {1})"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user