Improve limiter in files command
This commit is contained in:
parent
9a25dee96b
commit
c4b8140948
@ -3,9 +3,9 @@
|
|||||||
[ "$1" ] && commit_hash="$1" || commit_hash="HEAD"
|
[ "$1" ] && commit_hash="$1" || commit_hash="HEAD"
|
||||||
|
|
||||||
commit="git --no-pager show -q $commit_hash"
|
commit="git --no-pager show -q $commit_hash"
|
||||||
limiter="-------------------------------------------------"
|
limiter="seq -s_ 150|tr -d '[:digit:]'"
|
||||||
file_content="git show $commit_hash:{}"
|
file_content="git show $commit_hash:{}"
|
||||||
|
|
||||||
git ls-tree -r --name-only "$commit_hash" |
|
git ls-tree -r --name-only "$commit_hash" |
|
||||||
fzf --ansi --preview "$commit && echo $limiter && $file_content" \
|
fzf --ansi --preview "$commit && $limiter && $file_content" \
|
||||||
--preview-window=right:70%
|
--preview-window=right:70%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user