From e4a636a8c33e8264952f007ae1db3a1e08095590 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Tue, 12 Dec 2017 10:20:22 +0100 Subject: [PATCH] add --ansi, as remarked in https://github.com/junegunn/fzf/issues/1175#issuecomment-350938973 --- Examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples.md b/Examples.md index 7add54e..4eeea52 100644 --- a/Examples.md +++ b/Examples.md @@ -399,7 +399,7 @@ sort -u | awk '{print "\x1b[34;1mbranch\x1b[m\t" $1}') || return target=$( (echo "$tags"; echo "$branches") | fzf --no-hscroll --no-multi --delimiter="\t" -n 2 \ - --preview="git log -200 --pretty=format:%s $(echo {+2..} | sed 's/$/../' )" ) || return + --ansi --preview="git log -200 --pretty=format:%s $(echo {+2..} | sed 's/$/../' )" ) || return git checkout $(echo "$target" | awk '{print $2}') } @@ -438,7 +438,7 @@ fcoc_preview() { local commit commit=$( glNoGraph | fzf --no-sort --reverse --tiebreak=index --no-multi \ - --preview $_viewGitLogLine ) && + --ansi --preview $_viewGitLogLine ) && git checkout $(echo "$commit" | sed "s/ .*//") } @@ -446,7 +446,7 @@ fcoc_preview() { fshow_preview() { glNoGraph | fzf --no-sort --reverse --tiebreak=index --no-multi \ - --preview $_viewGitLogLine \ + --ansi --preview $_viewGitLogLine \ --header "enter to view, alt-y to copy hash" \ --bind "enter:execute:$_viewGitLogLine | less -R" \ --bind "alt-y:execute:$_gitLogLineToHash | xclip"