Skip to content
Myr

Link to benchmark section

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by GitHub · parent 108fce3 · Browse files · 1 file+11 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−11 removed

  • other:+11 added−11 removed

1 file+11 added−11 removed

modified:README.md+11 added-11 removed
10 unmodified lines
1112## Features13* Convenient syntax: `fd PATTERN` instead of `find -iname '*PATTERN*'`.14* Colorized terminal output (similar to *ls*).15* It's *fast* (see benchmarks below).15* It's *fast* (see [benchmarks](#benchmark) below).16* Smart case: the search is case-insensitive by default. It switches to17 case-sensitive if the pattern contains an uppercase18 character[\*](http://vimdoc.sourceforge.net/htmldoc/options.html#'smartcase').19* Ignores hidden directories and files, by default.
6 unmodified lines
26## Demo2728![Demo](http://i.imgur.com/kTMFSVU.gif)2930## Colorized output31`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment32variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value33of this variable is set by the `dircolors` command which provides a convenient configuration format34to define colors for different file formats.35On most distributions, `LS_COLORS` should be set already. If you are looking for alternative, more36complete (and more colorful) variants, see37[here](https://github.com/seebi/dircolors-solarized) or38[here](https://github.com/trapd00r/LS_COLORS).3930## Benchmark31Let's search my home folder for files that end in `[0-9].jpg`. It contains ~150.00032subdirectories and about a million files. For averaging and statistical analysis, I'm using33[bench](https://github.com/Gabriel439/bench). All benchmarks are performed for a "warm
51 unmodified lines
8586Concerning *fd*'s speed, the main credit goes to the `regex` and `ignore` crates that are also used87in [ripgrep](https://github.com/BurntSushi/ripgrep) (check it out!).8889## Colorized output90`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment91variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value92of this variable is set by the `dircolors` command which provides a convenient configuration format93to define colors for different file formats.94On most distributions, `LS_COLORS` should be set already. If you are looking for alternative, more95complete (and more colorful) variants, see96[here](https://github.com/seebi/dircolors-solarized) or97[here](https://github.com/trapd00r/LS_COLORS).9899## Install100With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can install *fd* via:101```102cargo install fd-find
243 unmodified lines