As export command will not work with fd because fd is just an alias to
fdfind, create a soft link instead of alias.
Addresses https://github.com/sharkdp/fd/issues/728
When --path-separator is used, pass it on to commands run with
--exec(-batch) and --list-details.
On Windows, paths with drive letters (C:\foo) and UNC paths
(\\server\share\path) are handled as expected, though they're unlikely
to be found in normal usage of fd.
Fixes: https://github.com/sharkdp/fd/issues/697
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.
Currently, https://packages.ubuntu.com/disco/fd-find shows an error.
This is because of the package page that unsupported version was removed.
So I removed the version from the link. That link shows a search result of `fd-find`
and can find OSs that can install `fd-find`.