From c4b8140948da2f03b919db87b2621a036bcf9db4 Mon Sep 17 00:00:00 2001 From: samedamci Date: Tue, 31 Aug 2021 13:55:36 +0200 Subject: [PATCH] Improve limiter in files command --- guzzy/commands/files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guzzy/commands/files.sh b/guzzy/commands/files.sh index 1db5538..9cbc5f3 100755 --- a/guzzy/commands/files.sh +++ b/guzzy/commands/files.sh @@ -3,9 +3,9 @@ [ "$1" ] && commit_hash="$1" || commit_hash="HEAD" commit="git --no-pager show -q $commit_hash" -limiter="-------------------------------------------------" +limiter="seq -s_ 150|tr -d '[:digit:]'" file_content="git show $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%