Skip to content
Myr

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

2 files+32 added−13 removed

modified:CHANGELOG.md+8 added
1CHANGELOG2=========340.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 scripts11120.56.313------14- Bug fixes in zsh scripts15 - fix(zsh): handle backtick trigger edge case (#4090)
2315 unmodified lines
modified:README.md+24 added-13 removed
74 unmodified lines
75 * [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 lines
552export **<TAB>553unalias **<TAB>554```555555### Settings556### Customizing fzf options for completion557558```sh559# Use ~~ as the trigger sequence instead of the default **560export FZF_COMPLETION_TRIGGER='~~'561562# Options to fzf command563export FZF_COMPLETION_OPTS='--border --info=inline'564564# 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>)566export FZF_COMPLETION_PATH_OPTS='--walker file,dir,follow,hidden'567571# 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>)569export FZF_COMPLETION_DIR_OPTS='--walker dir,follow'570571# 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 lines
583 esac584}585```586587### Customizing completion source for paths and directories588589```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}596597# Use fd to generate the list for directory completion598_fzf_compgen_dir() {599 fd --type d --hidden --follow --exclude ".git" . "$1"600}601```602603### Supported commands604605On 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 other
313 unmodified lines