From 8e1c0958bf51beb09f250a7d01f59451025afca9 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Mon, 25 Nov 2019 15:01:12 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20Add=20an=20example?= =?UTF-8?q?=20for=20'FORGIT=5FCMD=5FFZF=5FOPTS'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 178da83..6e3c0c1 100644 --- a/README.md +++ b/README.md @@ -141,9 +141,19 @@ Customizing fzf options for each command individually is also supported: | `gss` | `FORGIT_STASH_FZF_OPTS` | | `gclean` | `FORGIT_CLEAN_FZF_OPTS` | -The full loading order of fzf options is: +The complete loading order of fzf options is: -`FZF_DEFAULT_OPTS`(`fzf` global) -> `FORGIT_FZF_DEFAULT_OPTS`(`forgit` global) -> `FORGIT_CMD_FZF_OPTS`(command specific). +1. `FZF_DEFAULT_OPTS`(fzf global) +2. `FORGIT_FZF_DEFAULT_OPTS`(forgit global) +3. `FORGIT_CMD_FZF_OPTS`(command specific) + +**Example** +``` +// adds a keybind to drop the selected stash but do not quit fzf +FORGIT_STASH_FZF_OPTS=' +--bind="ctrl-d:reload(git stash drop $(cut -d: -f1 <<<{}) 1>/dev/null && git stash list)" +' +``` ## Optional