From b14c57e65698b6572273d22cc5202549060de80b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 20 Nov 2013 01:42:57 +0900 Subject: [PATCH] Update README --- README.md | 22 ++++++++++++++++++++-- fzf-completion.bash | 4 ++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f20dd1a..d65345f 100644 --- a/README.md +++ b/README.md @@ -263,24 +263,42 @@ over time* fuzzy-finder-completion can be triggered if you type in a directory name followed by the trigger sequence which is by default `**`. +#### Examples + ```sh +# Files under current directory +# - You can select multiple items with TAB key vim ** + +# Files under parent directory vim ..** + +# Files under your home directory vim ~/** + +# Directories under current directory (single-selection) cd ** + +# Directories under parent directory cd ../ ``` -You can use different trigger sequence by setting `FZF_COMPLETION_TRIGGER` +#### Settings ```sh +# Use ~~ as the trigger sequence instead of the default ** export FZF_COMPLETION_TRIGGER='~~' + +# Options to fzf command +export FZF_COMPLETION_OPTS='+c -x' ``` ### zsh -TODO +TODO :smiley: + +(Pull requests are appreciated.) Tips ---- diff --git a/fzf-completion.bash b/fzf-completion.bash index fff7f63..7ddc583 100644 --- a/fzf-completion.bash +++ b/fzf-completion.bash @@ -5,8 +5,8 @@ # / __/ / /_/ __/ # /_/ /___/_/-completion.bash # -# - $FZF_COMPLETION_TRIGGER (default '**') -# - $FZF_COMPLETION_OPTS +# - $FZF_COMPLETION_TRIGGER (default: '**') +# - $FZF_COMPLETION_OPTS (default: empty) _fzf_opts_completion() { local cur prev opts