[go: nahoru, domu]

Skip to content
/ fzf-git Public
forked from otoyo/fzf-git

Interactive Git tools with fzf

License

Notifications You must be signed in to change notification settings

myan-o/fzf-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

fzf-git

fzf-git makes Git files and commits selection easy.

Feature

File selection

fzf-git

Key-bindings

  • Tab key to select multi files
  • Ctrl+down to scroll preview

Commits selection

git-fzf-commit

Key-bindings

  • Tab key to select multi commits
  • Ctrl+down to scroll preview
  • left key to display branch selection in the commits selection
  • right key to display commits of selected branch in the branch selection

Requirements

Installation

# Install requirements
$ brew install fzf
$ brew install expect

$ cd ~
$ git clone git@github.com:otoyo/fzf-git.git

Add the following into ~/.zshrc

[ -d ~/fzf-git ] && \
  source ~/fzf-git/fzf-git.zsh && \
  bindkey '^G' fzf-git-widget && \
  bindkey '^H' fzf-git-commit-widget

And reload ~/.zshrc

$ source ~/.zshrc

Now you can use fzf-git by Ctrl+G and Ctrl+H in the Git repositories.

And, you can use multi-select by pressing Tab in fzf console.

Widgets

  • fzf-git-widget: Search files from git status
  • fzf-git-commit-widget: Search commits from git log

Update

Pull fzf-git.git and reload ~/.zshrc

$ cd ~/fzf-git
$ git pull origin master
$ source ~/.zshrc

Contribution

Feel free to open a Pull Requests ;)

About

Interactive Git tools with fzf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%