From 0a389fdfdb8ba7227abf31026b01a6a59c09f845 Mon Sep 17 00:00:00 2001 From: Andy Weidenbaum Date: Wed, 30 Dec 2015 20:26:55 -0800 Subject: [PATCH] update fshow from junegunn/dotfiles with minor fix --- Examples.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Examples.md b/Examples.md index 596edc6..3b8b50a 100644 --- a/Examples.md +++ b/Examples.md @@ -331,10 +331,12 @@ fcoc() { fshow() { git log --graph --color=always \ --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | - fzf --ansi --no-sort --reverse --tiebreak=index --toggle-sort=\` \ + fzf --ansi --no-sort --reverse --tiebreak=index --bind=ctrl-s:toggle-sort \ --bind "ctrl-m:execute: - echo '{}' | grep -o '[a-f0-9]\{7\}' | head -1 | - xargs -I % sh -c 'git show --color=always % | less -R'" + (grep -o '[a-f0-9]\{7\}' | head -1 | + xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF' + {} +FZF-EOF" } ```