Skip to content

Commit

Permalink
fix(fzf): change binding for sort toggle
Browse files Browse the repository at this point in the history
CTRL-S is taken by session switch.
  • Loading branch information
eliasnorrby committed Feb 26, 2021
1 parent 6906b40 commit 2f0e0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/zsh/fzf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ gg() {
is_in_git_repo || return
git log --date=short --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" --graph --color=always |
fzf-down --ansi --no-sort --reverse --multi \
--bind 'ctrl-s:toggle-sort' \
--bind 'ctrl-n:toggle-sort' \
--bind "ctrl-y:execute:$_gitLogLineToHash | pbcopy" \
--header 'Press CTRL-S to toggle sort, CTRL-Y to yank' \
--header 'Press CTRL-N to toggle sort, CTRL-Y to yank' \
--preview 'grep -o "[a-f0-9]\{7,\}" <<< {} | xargs git show --color=always | head -200' |
grep -o "[a-f0-9]\{7,\}"
}
Expand Down

0 comments on commit 2f0e0d0

Please sign in to comment.