From 0cd9d8c3a6abe0ce1838f2abf43b97143bde9fd1 Mon Sep 17 00:00:00 2001 From: David Peter Date: Sun, 8 Oct 2017 20:54:54 +0200 Subject: [PATCH] Link to benchmark section --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0140d35..57a4ea4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ While it does not seek to mirror all of *find*'s powerful functionality, it prov ## Features * Convenient syntax: `fd PATTERN` instead of `find -iname '*PATTERN*'`. * Colorized terminal output (similar to *ls*). -* It's *fast* (see benchmarks below). +* It's *fast* (see [benchmarks](#benchmark) below). * Smart case: the search is case-insensitive by default. It switches to case-sensitive if the pattern contains an uppercase character[\*](http://vimdoc.sourceforge.net/htmldoc/options.html#'smartcase'). @@ -27,16 +27,6 @@ While it does not seek to mirror all of *find*'s powerful functionality, it prov ![Demo](http://i.imgur.com/kTMFSVU.gif) -## Colorized output -`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment -variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value -of this variable is set by the `dircolors` command which provides a convenient configuration format -to define colors for different file formats. -On most distributions, `LS_COLORS` should be set already. If you are looking for alternative, more -complete (and more colorful) variants, see -[here](https://github.com/seebi/dircolors-solarized) or -[here](https://github.com/trapd00r/LS_COLORS). - ## Benchmark Let's search my home folder for files that end in `[0-9].jpg`. It contains ~150.000 subdirectories and about a million files. For averaging and statistical analysis, I'm using @@ -96,6 +86,16 @@ be different for you! I encourage everyone to try it out on their own. Concerning *fd*'s speed, the main credit goes to the `regex` and `ignore` crates that are also used in [ripgrep](https://github.com/BurntSushi/ripgrep) (check it out!). +## Colorized output +`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment +variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value +of this variable is set by the `dircolors` command which provides a convenient configuration format +to define colors for different file formats. +On most distributions, `LS_COLORS` should be set already. If you are looking for alternative, more +complete (and more colorful) variants, see +[here](https://github.com/seebi/dircolors-solarized) or +[here](https://github.com/trapd00r/LS_COLORS). + ## Install With Rust's package manager [cargo](https://github.com/rust-lang/cargo), you can install *fd* via: ```