Update README

Former-commit-id: 99b3c66cd6
This commit is contained in:
Wenxuan 2019-01-18 17:38:17 +08:00
parent 877b153a20
commit 1802ec26fc
2 changed files with 9 additions and 4 deletions

View file

@ -115,13 +115,19 @@ FORGIT_FZF_DEFAULT_OPTS="
--height '80%'
"
```
## Enhancements
### Tips
- [`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy): Improve `git diff` output.
- [`bat`](https://github.com/sharkdp/bat.git): Highlight support for `gitignore`.
- [`emoji-cli`](https://github.com/wfxr/emoji-cli): Emoji support for `git log`.
## Tips
- 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.
- Commands like `glo`, `gd`, `gcf` and `gclean` accept path arguments to restrain the items listed in fzf(eg, `glo main.go test.go`, `gclean output/`).
- Call `gi` with arguments to get wanted `.gitignore` contents directly(eg, `gi c++`).
- Call `gi` with arguments to get the wanted `.gitignore` contents directly(eg, `gi cmake c++`).
## [License](LICENSE.txt)

View file

@ -28,7 +28,6 @@ forgit::inside_work_tree() { git rev-parse --is-inside-work-tree >/dev/null; }
hash diff-so-fancy &>/dev/null && forgit_fancy='|diff-so-fancy'
# https://github.com/wfxr/emoji-cli
hash emojify &>/dev/null && forgit_emojify='|emojify'
hash bat &>/dev/null && forgit_ignore_highlighter='|bat -l gitignore --style=numbers,grid'
# git commit viewer
forgit::log() {