Skip to content

EfforiaKnight/fizzygit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fizzygit

fizzygit is a utility tool for git taking advantage of fuzzy finder fzf.

Install

With fisherman

fisher EfforiaKnight/fizzygit

Add following block to your config.fish

if type -q fizzygit
    fizzygit
end

Optional

  • Install diff-so-fancy will give you better quality of diff output.

Notes

  • Required fish version: >=2.4.0
  • Compatible fzf versions: >0.11.3

Configuration

Variable FZF_TMUX - runs a tmux-friendly version of fzf instead

set -U FZF_TMUX 1

Commands

gl

Pretty git log inside fzf ga

Keys Action
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><C-k> Preview down/up

gd

git diff inside fzf gd

Keys Action
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><C-k> Preview down/up

ga

Interactive git add inside fzf gd

Keys Action
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><C-k> Preview down/up
<Tab> Mark/Unmark(and move down)
<C-r> Reverse selection
<A-Enter> git add selected files
<C-p> git add --patch selected files
<A-r> git reset HEAD selected files

Known issue

  • Fullscreen preview doesn't work in ga when not in tmux mode.

About

Fish with FZF and git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages