Update README

This commit is contained in:
Junegunn Choi 2013-11-20 01:42:57 +09:00
parent fa5617e076
commit b14c57e656
2 changed files with 22 additions and 4 deletions

View File

@ -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 **<TAB>
# Files under parent directory
vim ..**<TAB>
# Files under your home directory
vim ~/**<TAB>
# Directories under current directory (single-selection)
cd **<TAB>
# Directories under parent directory
cd ../<TAB>
```
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
----

View File

@ -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