Thayne McCombs
06cd391845
Change test_opposing to be less flaky.
...
Make it resilient to the different invocations returning results in
different orders.
2022-01-07 03:10:09 -07:00
Thayne McCombs
b7e077320d
Fix logic for --no-ignore-parent ( #908 )
...
Make sure that using `--no-ignore-vcs` or `--no-ignore` don't also
enable `--no-ignore-parent`. So that if `--no-ignore-vcs` is enabled, it
continues to respect .fdignore and .ignore in the parent directories.
Fixes : #907
Fixes : #901
2021-12-22 23:38:00 -07:00
David Peter
92bd7850d0
Merge remote-tracking branch 'origin/master' into no-strip/760
2021-11-26 18:19:28 +01:00
David Peter
47421a49b8
Remove strip-prefix placeholders
2021-11-26 17:58:18 +01:00
David Peter
4d7e34ad59
Rename option to strip_cwd_prefix, rename CLI option
2021-11-26 17:46:04 +01:00
David Peter
13cdfb32f8
Remove outdated comment
2021-11-26 17:40:07 +01:00
David Peter
cdc6a37ed6
Merge remote-tracking branch 'origin/master' into pr/opposing-options
2021-11-14 16:47:53 +01:00
Devon Hollowood
17dd2a6dfe
Implement --batch-size
( #866 )
2021-10-22 00:05:13 -06:00
Jonah Caplan
bf9e6fd36e
add -P option to strip prefix to tty
2021-10-17 00:29:51 -04:00
Jonah Caplan
46db1c4ef3
add {-} format for exec
2021-10-16 23:52:04 -04:00
Jonah Caplan
b9cb5d54a4
fixup tests
2021-10-16 23:13:27 -04:00
Jonah Caplan
fbc836b553
Revert -X stuff
...
This reverts commit 91860bf682
.
2021-10-16 14:03:23 -04:00
Jonah Caplan
91860bf682
fmt
2021-10-16 00:02:37 -04:00
Jonah Caplan
b6f8bc8ff8
also handle -X and -x with no_strip
2021-10-15 23:57:03 -04:00
Jonah Caplan
12650a0913
add example to man page and correct test comment
2021-10-15 23:57:03 -04:00
Jonah Caplan
953f586f26
replace -N option with specifying '.' path
2021-10-15 23:57:03 -04:00
Jonah Caplan
08d913f167
cargo fmt fixup
2021-10-15 23:56:36 -04:00
Jonah Caplan
6b92c5db90
add -N/--no-strip option to show "./" prefix on relative paths
2021-10-15 23:56:36 -04:00
Tavian Barnes
7b5b3ec47b
walk: Add a cache for DirEntry metadata
2021-10-13 09:13:44 +02:00
Tavian Barnes
476d404938
Merge pull request #817 from will459/add_no_ignore_parent
...
Add --no-ignore-parent flag
2021-09-01 13:22:01 -04:00
William Correia
43f5c8adc9
Add tests for --no-ignore-parent
2021-08-31 18:04:42 -04:00
Vukašin Stepanović
c749c95136
Merge branch 'master' into pr/opposing-options
2021-08-23 15:55:17 +02:00
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
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
David Peter
224b7f2354
Silence wrong clippy warning
2021-08-08 23:48:20 +02:00
David Peter
aeff525c30
Attempt to fix #365
2021-08-08 15:02:01 +02:00
David Peter
b507449146
Handle IO errors based on type, closes #737
2021-08-08 13:10:16 +02: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
cadaef3f07
Show error if pattern matches leading dot but --hidden is not given, closes #615
2020-12-06 15:57:33 +01:00
sharkdp
d2659de782
Improve --extension help text, closes #673
2020-12-06 12:20:50 +01:00
Platon Pronko
e97a1e90cb
Add exact size support to the --size filter ( #669 )
2020-12-06 11:47:27 +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
sharkdp
726fede7cc
Code formatting
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
fef1b91feb
Remove test assertion covered by existing tests
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
Alexandru Macovei
4f4330167a
Fix some clippy lints, and format
2020-05-01 14:08:53 +02:00
Seamus Connor
b22285ffe4
Fix --glob behavior with empty pattern
...
With an empty pattern, --glob results in no matches. This does not
align with the behavior of --fixed-strings or --regex. Update the
initialization code to handle globs with empty patterns.
2020-04-26 22:01:29 +02:00
sharkdp
4287cddc00
Add test
2020-04-15 23:32:28 +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
ea21df3f76
Add tests originally written by @alexmaco in #309
2020-04-04 18:46:08 +02:00
sharkdp
53557ef471
Clean up include order
2020-04-03 22:36:32 +02:00
sharkdp
342d12db3f
Remove possibility to use '--exec <cmd>' with a single dash
2020-04-03 22:36:32 +02:00
sharkdp
289d6443a7
Use .write_all
2020-04-03 10:37:53 +02:00
sharkdp
4274075f6f
Remove outdated license headers (not strictly required by Apache-2.0)
2020-04-03 10:19:13 +02:00
sharkdp
1714d416e2
Fix test on Windows
2020-04-02 20:27:41 +02:00