Commit Graph

93 Commits

Author SHA1 Message Date
Asha20
334488cab7
Add -q/--quiet/--has-match flag (#813)
Instead of printing to stdout, the program will return 1 as the exit
code if there are no matches and 0 otherwise.
2021-08-14 17:57:01 +02:00
Thayne McCombs
8984e57dd6 Merge branch 'master' into pr/opposing-options 2021-08-11 01:44:51 -06:00
Thayne McCombs
049232439a Add item to CHANGELOG for no buffer with single thread 2021-08-11 09:38:55 +02:00
Klim Tsoutsman
6a18b36037
Support --list-details on more platforms
Implement `--list-details` by using short options for `ls` to support more platforms (like BusyBox)

closes #783
2021-08-10 20:39:10 +02:00
Vukašin Stepanović
37852aa388 Add 5 opposing CLI options
Those are:
  - `--no-hidden`, which overrides `--hidden`
  - `--ignore`, which overrides `--no-ignore`
  - `--ignore-vcs`, which overrides `--no-ignore-vcs`
  - `--no-follow`, which overrides `--follow`
  - `--relative-path`, which overrides `--absolute-path`
2021-08-09 15:49:48 +02:00
Jacob Mischka
ba60a163fe Use local times for time functions
This patch uses Chrono for explicit date or datetime parsing, only using
humantime for its relative time parsing. The following formats are accepted:

1. Full RFC3339 parsing, requiring an explicit timezone
2. `YY-MM-DD`, defaulting to time `00:00:00` for the given date in the
   local time zone
3. `YY-MM-DD HH:MM:SS` in the local time zone

Fixes #631, #794
2021-08-09 13:40:55 +02:00
William Correia
f8ae334ca9
Add --no-ignore-parent flag
- Flag toggles parent checking in the `ignore` crate.  This should
  affect both git and non-git ignore files.
- Updated Changelog.
2021-08-08 17:38:24 -04:00
David Peter
018556a367 Add CHANGELOG entries 2021-08-08 15:04:28 +02:00
David Peter
6e44828cc8 Add CHANGELOG entry 2021-08-08 13:13:58 +02:00
David Peter
efc71bc00b Update CHANGELOG 2021-02-15 22:53:50 +01:00
Allen Wild
8a532e5196 use custom --path-separator in arguments to --exec
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
2021-02-14 10:24:41 +01:00
sharkdp
6a3aae52fd Bump version to v8.2.1 2020-12-07 19:01:36 +01:00
sharkdp
91eaff056f Update CHANGELOG 2020-12-06 16:04:37 +01:00
sharkdp
45c66e7f1b Update CHANGELOG 2020-12-06 11:54:54 +01:00
Platon Pronko
f3edaf0e4d add changelog entry for exact file sizes in --size filter 2020-12-06 11:47:27 +01:00
sharkdp
b2fa188029 Avoid panic when sending errors after receiver shutdown
fixes #678
2020-10-28 13:10:25 +01:00
David Peter
e0adb45d08
Fail with error message if numeric arguments can not be parsed
closes #675
2020-10-25 21:18:53 +01:00
Matthias Reitinger
ec4cc981fc
Add --prune flag
closes #535
2020-10-25 08:16:01 +01:00
Fredrik Fornwall
a851570b15 Disable jemalloc on Android (fixes #636 and #642)
Disabling jemalloc for Android fixes a build failure since jemalloc does
not build out of the box for that platform on older API versions.

Android started using jemalloc as the system allocator around 2014 for
most devices. In the latest Android version (11) the system allocator
has been switched to Scudo, which while not being jemalloc is modern and
actively maintained and should be used for most software on Android.

See:
- https://android-developers.googleblog.com/2020/06/system-hardening-in-android-11.html
- https://blog.nsogroup.com/a-tale-of-two-mallocs-on-android-libc-allocators-part-2-jemalloc/
- https://stackoverflow.com/questions/2266762/android-libc-version-and-malloc-implementation
2020-10-08 12:45:48 +02:00
sharkdp
f064e41bf1 Update CHANGELOG 2020-10-05 23:30:00 +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
27162c2729 Update CHANGELOG 2020-05-19 17:57:14 +02:00
sharkdp
c761d51dfb Add CHANGELOG entry 2020-05-19 17:09:27 +02:00
sharkdp
d41a5a9e24 Update CHANGELOG 2020-05-19 15:57:47 +02:00
sharkdp
4cafb28951 Update CHANGELOG 2020-05-18 21:20:23 +02:00
Alexandru Macovei
a9dc45ecb1 [ownership] document --owner in manpage and changelog 2020-05-18 21:11:33 +02:00
sharkdp
f31fb9bf68 Update CHANGELOG 2020-04-26 22:02:24 +02:00
sharkdp
90de7242c7 Update CHANGELOG 2020-04-17 21:39:09 +02:00
sharkdp
17fbc2dc52 Update CHANGELOG 2020-04-16 10:02:29 +02:00
sharkdp
cb56add1d8 Add new --type socket and --type pipe filters
closes #511
2020-04-16 09:59:45 +02:00
sharkdp
789706c3ab Update CHANGELOG 2020-04-15 19:33:02 +02:00
sharkdp
4a0730a5fa Update CHANGELOG 2020-04-15 19:23:59 +02:00
sharkdp
d63c63be8c Add --min-depth and --exact-depth
Add new `--min-depth <depth>` and `--exact-depth <depth>` options in addition to the existing
option to limit the maximum depth.

closes #404
2020-04-15 17:02:41 +02:00
sharkdp
47974b6479 --glob: '*' does not match on path separators 2020-04-15 16:41:56 +02:00
Danny Mösch
2bab4a2249 Add alias -1 for --max-results=1 2020-04-10 21:39:30 +02:00
sharkdp
33df48ebe4 Remove claim about unique search results 2020-04-03 10:07:46 +02:00
sharkdp
c9dc617711 Rename --list to --list-details 2020-04-03 09:58:47 +02:00
sharkdp
da5cd12b24 Add -l/--list option
Add a new `-l`/`--list` option to show more details about the search results. This is basically
an alias for `--exec-batch ls -l` with some additional `ls` options.
This can be used in order to:
    * see metadata like permissions, owner, file size, modification times (#491)
    * see symlink targets (#482)
    * achieve a deterministic output order (#324, #196, #159)
    * avoid duplicate search results when multiple search paths are given (#405)
2020-04-03 09:58:47 +02:00
sharkdp
d43827fe57 Add --max-results=<count> option
This new option can be used instead of piping to `head -n <count>` for
improved performance:

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `fd --max-buffer-time=0 flow.yaml` | 153.9 ± 2.5 | 151.3 | 170.3 | 4.21 ± 5.86 |
| `fd --max-buffer-time=0 flow.yaml \| head -n 1` | 145.3 ± 17.4 | 111.0 | 180.2 | 3.98 ± 5.55 |
| `fd --max-results=1 flow.yaml` | 36.5 ± 50.8 | 7.2 | 145.7 | 1.00 |

Note: there is a large standard deviation on the last result due to the
non-deterministic file system traversal. With `--max-results`, we don't
have to traverse the whole filesystem tree, so it's all about luck.

closes #472
closes #476
2020-04-02 20:27:41 +02:00
David Peter
ee673c92d3
Added changes for upcoming release 2020-04-02 16:58:27 +02:00
David Peter
decd7f2ea3
Update CHANGELOG.md 2020-04-02 16:54:19 +02:00
David Peter
f3e1ea150c
Add CHANGELOG 2020-04-02 16:53:12 +02:00