From cb3ec9e73e89dd86b19cd202d382cd9edd5c82c3 Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Fri, 6 Apr 2018 22:54:36 +0800 Subject: [PATCH] Update README --- README.md | 62 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index bd134fa..f5d74f7 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,15 @@ ### [zplug](https://github.com/zplug/zplug) (Recommend) -Just add this line to your zshrc: - - zplug 'wfxr/forgit', defer:1 +``` zsh +zplug 'wfxr/forgit', defer:1 +``` ### [antigen](https//github.com/zsh-users/antigen) -Just add this line to your zshrc: - - antigen bundle wfxr/forgit +``` zsh +antigen bundle wfxr/forgit +``` ### Manually @@ -28,14 +28,15 @@ Interactive `git add` ![screenshot](screenshot-ga.png) - Mark/Unmark(and move down) - Reverse selection - Confirml and quit - Selection down/up - - Toogle preview window - Toggle preview wrap - Preview down/up +| Keybind | Action | +| ---------------- | -------------------------- | +| `` | Mark/Unmark(and move down) | +| `` | Reverse selection | +| `` | Confirm and quit | +| `` | Selection down/up | +| `` | Toggle preview window | +| `` | Toggle preview wrap | +| `` | Preview down/up | ### glo @@ -43,23 +44,25 @@ Interactive `git log` ![screenshot](screenshot-glo.png) - Fullscreen preview - Selection down/up - - Toogle preview window - Toggle preview wrap - Preview down/up +| Keybind | Action | +| ---------------- | --------------------- | +| `` | Fullscreen preview | +| `` | Selection down/up | +| `` | Toggle preview window | +| `` | Toggle preview wrap | +| `` | Preview down/up | ### gd Interactive `git diff` - Fullscreen preview - Selection down/up - - Toogle preview window - Toggle preview wrap - Preview down/up +| Keybind | Action | +| ---------------- | --------------------- | +| `` | Fullscreen preview | +| `` | Selection down/up | +| `` | Toggle preview window | +| `` | Toggle preview wrap | +| `` | Preview down/up | ### gi @@ -69,10 +72,9 @@ Interactive `.gitignore` generator ### Tips -- Quit from full screen preview any time by hitting `q`. -- Install [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy) will give you better quality of diff output. -- ~~`GI` works like `gi` but **appending** contents to `.gitignore` directly.~~ (Now gi has sub options to do this) -- You can give `gi` arguments to get wanted `.gitignore` contents directly +- Hit `q` to Quit from full screen preview any time. +- Install [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy) to have better `diff` output. +- Call `gi` with arguments to get wanted `.gitignore` contents directly(eg, `gi c++`). ## License