4 ms·
I would like to add fzf-style interfaces to checking out more things. Hopefully, they could index both the commit message and the commit contents when searching
by arxanas 5y ago
I would like to add fzf-style interfaces to checking out more things. Hopefully, they could index both the commit message and the commit contents when searching.
- girishso 5y agoTotally possible, I've following helper in my .zshrc # fshow - git commit browser fshow() { git log --graph --color=always HEAD \ --format="%C(auto)%h%d %s %C(blue)(%aN) %C(black)%C(bold)%cr" "$@" | fzf --ansi --no-sort --reverse --tiebreak=index --bind=ctrl-s:toggle-sort \ --bind "j:down,k:up,q:abort,ctrl-m:execute: (grep -o '[a-f0-9]\{7\}' | head -1 | xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF' {} FZF-EOF" }