Update README and CHANGELOG
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Close #4022
authored by Junegunn Choi · committed by Junegunn Choi · parent 7d95489 · Browse files · 2 files·+32 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+32 added−13 removed
- other:+32 added−13 removed
Provenance
- Commit
61d10d8- Tree
473dc4b- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
7d95489
2 files changed+32 added−13 removed
modified:CHANGELOG.md+8 added
1 CHANGELOG2 =========3 4+0.57.05+------6+- Built-in walker improvements7+ - `--walker-root` can take multiple directory arguments. e.g. `--walker-root include src lib`8+ - `--walker-skip` can handle multi-component patterns. e.g. `--walker-skip target/build`9+- `FZF_PREVIEW_*` environment variables are exported to all child processes (#4098)10+- Bug fixes in fish scripts11+12 0.56.313 ------14 - Bug fixes in zsh scripts15 - fix(zsh): handle backtick trigger edge case (#4090)2315 unmodified linesmodified:README.md+24 added-13 removed
74 unmodified lines75 * [Files and directories](#files-and-directories)76 * [Process IDs](#process-ids)77 * [Host names](#host-names)78 * [Environment variables / Aliases](#environment-variables--aliases)79- * [Settings](#settings)79+ * [Customizing fzf options for completion](#customizing-fzf-options-for-completion)80+ * [Customizing completion source for paths and directories](#customizing-completion-source-for-paths-and-directories)81 * [Supported commands](#supported-commands)82 * [Custom fuzzy completion](#custom-fuzzy-completion)83 * [Vim plugin](#vim-plugin)84 * [Advanced topics](#advanced-topics)467 unmodified lines552 export **<TAB>553 unalias **<TAB>554 ```555 555-### Settings556+### Customizing fzf options for completion557 558 ```sh559 # Use ~~ as the trigger sequence instead of the default **560 export FZF_COMPLETION_TRIGGER='~~'561 562 # Options to fzf command563 export FZF_COMPLETION_OPTS='--border --info=inline'564 564-# Use fd (https://github.com/sharkdp/fd) for listing path candidates.565-# - The first argument to the function ($1) is the base path to start traversal566-# - See the source code (completion.{bash,zsh}) for the details.567-_fzf_compgen_path() {568- fd --hidden --follow --exclude ".git" . "$1"569-}565+# Options for path completion (e.g. vim **<TAB>)566+export FZF_COMPLETION_PATH_OPTS='--walker file,dir,follow,hidden'567 571-# Use fd to generate the list for directory completion572-_fzf_compgen_dir() {573- fd --type d --hidden --follow --exclude ".git" . "$1"574-}568+# Options for directory completion (e.g. cd **<TAB>)569+export FZF_COMPLETION_DIR_OPTS='--walker dir,follow'570 571 # Advanced customization of fzf options via _fzf_comprun function572 # - The first argument to the function is the name of the command.578-# - You should make sure to pass the rest of the arguments to fzf.573+# - You should make sure to pass the rest of the arguments ($@) to fzf.574 _fzf_comprun() {575 local command=$1576 shift577 5 unmodified lines583 esac584 }585 ```586 587+### Customizing completion source for paths and directories588+589+```sh590+# Use fd (https://github.com/sharkdp/fd) for listing path candidates.591+# - The first argument to the function ($1) is the base path to start traversal592+# - See the source code (completion.{bash,zsh}) for the details.593+_fzf_compgen_path() {594+ fd --hidden --follow --exclude ".git" . "$1"595+}596+597+# Use fd to generate the list for directory completion598+_fzf_compgen_dir() {599+ fd --type d --hidden --follow --exclude ".git" . "$1"600+}601+```602+603 ### Supported commands604 605 On bash, fuzzy completion is enabled only for a predefined set of commands606 (`complete | grep _fzf` to see the list). But you can enable it for other313 unmodified lines