Commit Graph

665 Commits

Author SHA1 Message Date
Sebastián Mancilla ef1bfc7508 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.
2020-10-05 22:39:17 +02:00
Matthias Reitinger a38da63a34 Replace aliases in Travis config 2020-10-04 21:50:49 +02:00
Matthias Reitinger 9a49d0d6d0 Fix deprecated Travis config keys
* root: deprecated key sudo (The key `sudo` has no effect anymore.)
* deploy: deprecated key skip_cleanup (not supported in dpl v2, use
  cleanup)
2020-10-04 21:50:49 +02:00
gorogoroumaru 74c3431a2b
improve time option usage (#645)
* improve time option usage
2020-09-10 00:34:27 -06:00
yuuji.yaginuma 1b4e1e9c1a Fix a link to ubuntu official page
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`.
2020-08-08 07:46:45 +02:00
David Peter 6f2c8cdf91
Add tmccombs as maintainer 2020-06-10 07:42:49 +02:00
David Peter e2f90dba44
Update LS_COLORS help text 2020-05-25 16:47:51 +02:00
sharkdp 5648597a61 Bump version to 8.1.1 2020-05-25 15:38:30 +02:00
sharkdp b3258e00df Update CHANGELOG 2020-05-25 15:37:03 +02:00
sharkdp 41d7cc33ca Add CHANGELOG entry 2020-05-25 12:17:32 +02:00
sharkdp a81fef9992 Windows: Check for xterm-256color environment variable as a proxy for color support 2020-05-25 12:17:32 +02:00
sharkdp 53c338d71f Windows: Always enable colors if --color=always is set 2020-05-25 12:17:32 +02:00
Dmitry Marakasov d77daa89a2 Merged into single project in repology 2020-05-24 17:25:52 +02:00
sharkdp 78cde856b1 Update dependencies 2020-05-19 18:01:51 +02:00
sharkdp a954944d69 Prepare 8.1.0 release 2020-05-19 17:58:07 +02:00
sharkdp 27162c2729 Update CHANGELOG 2020-05-19 17:57:14 +02:00
sharkdp 1d1eefdb7b Disable jemalloc on macOS
This is a workaround for #498. See issue for details.

closes #498
2020-05-19 17:55:21 +02:00
sharkdp c8746f6216 Use macOS 10.15.4 (Catalina) for Travis build 2020-05-19 17:55:21 +02:00
sharkdp c761d51dfb Add CHANGELOG entry 2020-05-19 17:09:27 +02:00
sharkdp ddee6aa8f3 Revert "Always enable colors on Windows, closes #469"
This reverts commit a4e78519c4.
2020-05-19 17:09:27 +02:00
sharkdp e3c77ef7f5 Update --size documentation
closes #584
2020-05-19 17:06:32 +02:00
sharkdp c0592e276e Disable caching on Travis 2020-05-19 16:24:06 +02:00
sharkdp d41a5a9e24 Update CHANGELOG 2020-05-19 15:57:47 +02:00
sharkdp 726fede7cc Code formatting 2020-05-19 15:57:47 +02:00
sharkdp 9d3cb69935 Minor refactoring 2020-05-19 15:57:47 +02:00
DJRHails da9af8c1eb Improve consistency of linting 2020-05-19 15:57:47 +02:00
DJRHails dc120c547d Add error checking on missing test case 2020-05-19 15:57:47 +02:00
DJRHails bbf3d0d430 Update testenv to support errors that don't fail 2020-05-19 15:57:47 +02:00
DJRHails 4f4591bfdc Correct Err return to prevent panic 2020-05-19 15:57:47 +02:00
DJRHails 28d6a4f518 Check for no valid search paths to prevent panic 2020-05-19 15:57:47 +02:00
DJRHails 42719624a8 Refactor to for-loop 2020-05-19 15:57:47 +02:00
DJRHails fef1b91feb Remove test assertion covered by existing tests 2020-05-19 15:57:47 +02:00
DJRHails c5a311d3cc Allow for missing directories 2020-05-19 15:57:47 +02:00
DJRHails ca2ef7ba82 Add a test for a single missing search path 2020-05-19 15:57:47 +02:00
sharkdp 65b65b32be Update lockfile 2020-05-19 14:01:22 +02:00
sharkdp 3283a7b345 Fix warning 2020-05-19 14:01:00 +02:00
sharkdp 4cafb28951 Update CHANGELOG 2020-05-18 21:20:23 +02:00
Bobbie Soedirgo 79d5a5bdc5 Add global fdignore support 2020-05-18 21:19:09 +02:00
Alexandru Macovei a9dc45ecb1 [ownership] document --owner in manpage and changelog 2020-05-18 21:11:33 +02:00
Alexandru Macovei 1a16003cca [ownership][errs] ':' and '' args to --owner result in noop; reject strings with more than one ':' 2020-05-18 21:11:33 +02:00
Alexandru Macovei 6a68ac8c27 [ownership] add help text for --owner 2020-05-18 21:11:33 +02:00
Alexandru Macovei 09cdf9831d [ownership] parse leading exclamation mark as negation of ownership component 2020-05-18 21:11:33 +02:00
Alexandru Macovei 22a55361e0 [ownership] change uid/gid storage to tristate enum for negation 2020-05-18 21:11:33 +02:00
Alexandru Macovei d7cc34e36f [ownership] depend on users 0.10.0 on unix; parse user and group names 2020-05-18 21:11:33 +02:00
Alexandru Macovei 4f9a02400a [ownership] add --owner arg parsing and storage 2020-05-18 21:11:33 +02:00
Alexandru Macovei 30cb4adc61 [ownership] initial struct, parsing, and test framework 2020-05-18 21:11:33 +02:00
Jake Zimmerman daf3046a35 Add as-tree to the README
Suggested in this comment:

    https://github.com/sharkdp/fd/issues/283#issuecomment-627465260
2020-05-13 08:16:02 +02:00
Alex Kitchens 151eaad043 Fix "unnecessary braces" warning
Original warning:
```
warning: unnecessary braces around block return value
 --> src/filter/size.rs:5:39
  |
5 |     static ref SIZE_CAPTURES: Regex = { Regex::new(r"(?i)^([+-])(\d+)(b|[kmgt]i?b?)$").unwrap() };
  |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces
  |
  = note: `#[warn(unused_braces)]` on by default

warning: 1 warning emitted
```
2020-05-10 21:27:55 +02:00
Alexandru Macovei 4f4330167a Fix some clippy lints, and format 2020-05-01 14:08:53 +02:00
sharkdp f31fb9bf68 Update CHANGELOG 2020-04-26 22:02:24 +02:00