fd v8.0.0 Release Notes
Release Date: 2020-04-16 // about 4 years ago-
๐ Features
- โ Add a new
-l
/--list-details
option to show more details about the search results. This is
basically an alias for--exec-batch ls -l
with some additionalls
options.
This can be used in order to: - โ Add a new
--max-results=<count>
option to limit the number of search results, see #472, #476 and #555
This can be useful to speed up searches in cases where you know that there are only N results.
Using this option is also (slightly) faster than piping tohead -n <count>
wherefd
can only
exit when it finds the search results<count> + 1
. - โ Add the alias
-1
for--max-results=1
, see #561. (@SimplyDanny). - โ Add new
--type socket
and--type pipe
filters, see #511. - โ Add new
--min-depth <depth>
and--exact-depth <depth>
options in addition to the existing option
๐ to limit the maximum depth. See #404. - ๐ Support additional ANSI font styles in
LS_COLORS
: faint, slow blink, rapid blink, dimmed, hidden and strikethrough.
๐ Bugfixes
- Preserve non-UTF8 filenames: invalid UTF-8 filenames are now properly passed to child-processes
when using--exec
,--exec-batch
or--list-details
. Infd
's output, we replace non-UTF-8
sequences with the "๏ฟฝ" character. However, if the output offd
goes to another process, we
๐ print the actual bytes of the filename. For more details, see #558 and #295. - ๐
LS_COLORS
entries with unsupported font styles are not completely ignored, see #552
๐ Changes
- ๐ Colored output will now be enabled by default on older Windows versions.
๐ This allows the use of colored output if the terminal supports it (e.g.
MinTTY, Git Bash). On the other hand, this will be a regression for users
๐ on older Windows versions with terminals that do not support ANSI escape
sequences. Affected users can use an aliasfd="fd --color=never"
to
continue usingfd
without colors. There is no change of behavior for
๐ Windows 10. See #469. - When using
--glob
in combination with--full-path
, a*
character does not match a path
separation character (/
or\\
) anymore. You can use**
for that. This allows things like
fd -p -g '/some/base/path/*/*/*.txt'
which would previously match to arbitrary depths (instead
๐ of exactly two folders below/some/base/path
. See #404. - ๐ "Legacy" support to use
fd -exec
(with a single dash) has been removed. Usefd -x
or
fd --exec
instead. - Overall improved error handling and error messages.
Other
- ๐ Package maintainers on MacOS and Windows might think about adding (GNU)
ls
as an optional dependency forfd
to make full use offd
s new-l
/--list-details
option. For MacOS,fd
relies ongls
which should be available viacoreutils
. - ๐ Korean translation of the README, see: ํ๊ตญ์ด (@spearkkk)
- โ Add a new