From 6e7903a1a67734ea4f5e9cf7d06bd7aaf53db6a8 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Wed, 29 May 2019 18:56:56 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Update=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: ca61c92e9d597c16c35f8b17e5a0d27bfc17afcc --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5797600..47bcc1b 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ forgit_clean=gclean forgit_stash_show=gss ``` -You can add custom fzf options for `forgit`, including keybinds, layout, etc. +You can add default fzf options for `forgit`, including keybinds, layout, etc. (No need to repeat the options already defined in `FZF_DEFAULT_OPTS`) ``` bash @@ -115,15 +115,19 @@ FORGIT_FZF_DEFAULT_OPTS=" " ``` -You can also customize options fzf will use for each command individually: +Customizing fzf options for each command individually is also supported: -- `ga`: `FORGIT_ADD_FZF_OPTS` -- `glo`: `FORGIT_LOG_FZF_OPTS` -- `gi`: `FORGIT_IGNORE_FZF_OPTS` -- `gd`: `FORGIT_DIFF_FZF_OPTS` -- `gcf`: `FORGIT_CHECKOUT_FZF_OPTS` -- `gss`: `FORGIT_STASH_FZF_OPTS` -- `gclean`: `FORGIT_CLEAN_FZF_OPTS` +| Command | Option | +| :------: | -------------------------- | +| `ga` | `FORGIT_ADD_FZF_OPTS` | +| `glo` | `FORGIT_LOG_FZF_OPTS` | +| `gi` | `FORGIT_IGNORE_FZF_OPTS` | +| `gd` | `FORGIT_DIFF_FZF_OPTS` | +| `gcf` | `FORGIT_CHECKOUT_FZF_OPTS` | +| `gss` | `FORGIT_STASH_FZF_OPTS` | +| `gclean` | `FORGIT_CLEAN_FZF_OPTS` | + +The full loading order of fzf options is `FZF_DEFAULT_OPTS`(`fzf` global) -> `FORGIT_FZF_DEFAULT_OPTS`(`forgit` global) -> `FORGIT_CMD_FZF_OPTS`(command specific). ## Optional