You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Junegunn Choi 9867a4ac3c
Initial commit
2 years ago
README.md Initial commit 2 years ago
fzf-git.sh Initial commit 2 years ago

README.md

fzf-git.sh

bash and zsh key bindings for Git objects, powered by fzf.

Installation

  1. Install the latest version of fzf
  2. Source fzf-git.sh file from your .bashrc or .zshrc.

Usage

  • CTRL-GCTRL-F for Files
  • CTRL-GCTRL-B for Branches
  • CTRL-GCTRL-T for Tags
  • CTRL-GCTRL-R for Remotes
  • CTRL-GCTRL-H for commit Hashes
  • CTRL-GCTRL-S for Stashes

Customization

# Redefine this function to change the options
_fzf_git_fzf() {
  fzf-tmux -p80%,60% -- \
    --layout=reverse --multi --height=50% --min-height=20 --border \
    --preview-window='right,50%,border-left' \
    --bind='ctrl-/:change-preview-window(down,50%,border-top|hidden|)' "$@"
}