summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2020-09-23 19:50:28 -0300
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-05 22:39:17 +0200
commitef1bfc750862b751de1e235a5bf7e112c5378187 (patch)
treea187c600bcac02799b65280cea2dd61bc7f61c96 /build.rs
parenta38da63a345da0c19c8be62072759cd8a5f24df0 (diff)
Add native Zsh completion
Replace the auto-generated Zsh completion with a full completion script. This script improves completion support for options and arguments, which is hard to obtain from an auto-generated completion. - Full completion support for external commands and options when using `--exec`/`--exec-batch`. - The completion for `--type` and `--color` adds descriptions instead of just values. - Complete files when using `--ignore-file`. - Stop completing files for the pattern argument. - Improve completion for path arguments. Only directories are completed. - Single-use options are not offered again. - Updated exclusions lists for mutual-exclusive options. - Add support for hidden options (as defined in `app.rs`). They are not offered for completion, but if present are considered (and their value may be completed). Full support for exclusion lists depends of options groups, which was added in Zsh 5.4. Older Zsh versions, as commented in the completion script, will just offer most options. The format of the completion script was taken from ripgrep completion script. Command completion for `--exec`/`--exec-batch` was taken from Zsh's `_find` completion.
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 735ad74..92ca750 100644
--- a/build.rs
+++ b/build.rs
@@ -26,6 +26,5 @@ fn main() {
let mut app = build_app();
app.gen_completions("fd", Shell::Bash, &outdir);
app.gen_completions("fd", Shell::Fish, &outdir);
- app.gen_completions("fd", Shell::Zsh, &outdir);
app.gen_completions("fd", Shell::PowerShell, &outdir);
}