mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 21:05:09 +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
|
fuzzy-finder-completion can be triggered if you type in a directory name
|
||||||
followed by the trigger sequence which is by default `**`.
|
followed by the trigger sequence which is by default `**`.
|
||||||
|
|
||||||
|
#### Examples
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Files under current directory
|
||||||
|
# - You can select multiple items with TAB key
|
||||||
vim **<TAB>
|
vim **<TAB>
|
||||||
|
|
||||||
|
# Files under parent directory
|
||||||
vim ..**<TAB>
|
vim ..**<TAB>
|
||||||
|
|
||||||
|
# Files under your home directory
|
||||||
vim ~/**<TAB>
|
vim ~/**<TAB>
|
||||||
|
|
||||||
|
|
||||||
|
# Directories under current directory (single-selection)
|
||||||
cd **<TAB>
|
cd **<TAB>
|
||||||
|
|
||||||
|
# Directories under parent directory
|
||||||
cd ../<TAB>
|
cd ../<TAB>
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use different trigger sequence by setting `FZF_COMPLETION_TRIGGER`
|
#### Settings
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
# Use ~~ as the trigger sequence instead of the default **
|
||||||
export FZF_COMPLETION_TRIGGER='~~'
|
export FZF_COMPLETION_TRIGGER='~~'
|
||||||
|
|
||||||
|
# Options to fzf command
|
||||||
|
export FZF_COMPLETION_OPTS='+c -x'
|
||||||
```
|
```
|
||||||
|
|
||||||
### zsh
|
### zsh
|
||||||
|
|
||||||
TODO
|
TODO :smiley:
|
||||||
|
|
||||||
|
(Pull requests are appreciated.)
|
||||||
|
|
||||||
Tips
|
Tips
|
||||||
----
|
----
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
# / __/ / /_/ __/
|
# / __/ / /_/ __/
|
||||||
# /_/ /___/_/-completion.bash
|
# /_/ /___/_/-completion.bash
|
||||||
#
|
#
|
||||||
# - $FZF_COMPLETION_TRIGGER (default '**')
|
# - $FZF_COMPLETION_TRIGGER (default: '**')
|
||||||
# - $FZF_COMPLETION_OPTS
|
# - $FZF_COMPLETION_OPTS (default: empty)
|
||||||
|
|
||||||
_fzf_opts_completion() {
|
_fzf_opts_completion() {
|
||||||
local cur prev opts
|
local cur prev opts
|
||||||
|
Loading…
Reference in New Issue
Block a user