mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
| forgit.plugin.zsh | ||
| LICENSE.txt | ||
| README.md | ||
| screenshot-ga.png | ||
| screenshot-gi.png | ||
| screenshot-glo.png | ||
forgit
forgit is a utility tool for git taking advantage of fuzzy finder fzf.
Install
zplug (Recommend)
Just add this line to your zshrc:
zplug 'wfxr/forgit', defer:1
antigen
Just add this line to your zshrc:
antigen bundle wfxr/forgit
Manually
Clone this repo somewhere and source the forgit.plugin.zsh at ~/.zshrc.
Commands
ga
Interactive git add
<Tab> Mark/Unmark(and move down)
<C-r> Reverse selection
<Enter> Confirml and quit
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up
glo
Interactive git log
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up
gd
Interactive git diff
<Enter> Fullscreen preview
<C-j/n><C-k/p> Selection down/up
<?> Toogle preview window
<A-w> Toggle preview wrap
<A-j><A-k> Preview down/up
gi
Interactive .gitignore generator
Tips
- Quit from full screen preview any time by hitting
q. - Install
diff-so-fancywill give you better quality of diff output. (Now gi has sub options to do this)GIworks likegibut appending contents to.gitignoredirectly.- You can give
giarguments to get wanted.gitignorecontents directly


