summaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-03-11 18:29:39 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-03-11 18:32:35 +0900
commit50b7608f9d27c09093846e172f230d92b401f956 (patch)
treec3257ce2128ee0329c161f2e2b1da2191abb0ccd /CHANGELOG.md
parent7085e5b629dcc6eaef4205802f07979f535c8d5f (diff)
Change custom fuzzy completion API
To make it easier to write more complex fzf options. Although this does not break backward compatibility, users are encouraged to update their code accordingly. # Before _fzf_complete "FZF_ARG1 FZF_ARG2..." "$@" < <( # Print candidates ) # After _fzf_complete FZF_ARG1 FZF_ARG2... -- "$@" < <( # Print candidates )
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1a16fd53..41d949e3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,20 @@ CHANGELOG
- Bug fixes and improvements
- Vim plugin: Floating windows support
- bash: Various improvements in key bindings (CTRL-T, CTRL-R, ALT-C)
+- Fuzzy completion API changed
+ ```sh
+ # Previous: fzf arguments given as a single string argument
+ # - This style is still supported, but it is deprecated
+ _fzf_complete "--multi --reverse --prompt=\"doge> \"" "$@" < <(
+ echo foo
+ )
+
+ # New API: multiple fzf arguments before "--"
+ # - More rebust and easier to write options
+ _fzf_complete --multi --reverse --prompt="doge> " -- "$@" < <(
+ echo foo
+ )
+ ```
0.20.0
------