mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 04:45:14 +00:00
Update README
This commit is contained in:
parent
fa5617e076
commit
b14c57e656
22
README.md
22
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 **<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
|
||||
----
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user