From cac597643554b98056a311aba8aed36ce3c184dd Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Wed, 5 Aug 2020 11:45:55 +0800 Subject: [PATCH] docs: misc Former-commit-id: 57224696a9ad6660ea247f853ecbda6ebc225829 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1e3b76..a7fcba4 100644 --- a/README.md +++ b/README.md @@ -143,12 +143,16 @@ Complete loading order of fzf options is: 3. `FORGIT_CMD_FZF_OPTS` (command specific) **Example** + +- `ctrl-d` to drop the selected stash but do not quit fzf (`gss` specific). ``` -# ctrl-d 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)" ' -# ctrl-e to view the logs in a vim buffer +``` + +- `ctrl-e` to view the logs in a vim buffer (`glo` specific). +``` FORGIT_LOG_FZF_OPTS=' --bind="ctrl-e:execute(echo {} |grep -Eo [a-f0-9]+ |head -1 |xargs git show |vim -)" '