summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2013-12-22 00:22:23 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2013-12-22 00:36:39 +0900
commite09993f9199c5a3de3c32cde9af617dd025d1330 (patch)
tree08ba28374c0c6e50260ec1a639789b7dd2e9fef8
parent7ee6fd1f6d4788b569b691033cc994a84dad6ce0 (diff)
Update README
-rw-r--r--README.md18
1 files changed, 16 insertions, 2 deletions
diff --git a/README.md b/README.md
index cf6ca410..90c15cd5 100644
--- a/README.md
+++ b/README.md
@@ -183,8 +183,8 @@ fkill() {
}
```
-Key bindings
-------------
+Key bindings for command line
+-----------------------------
The install script will add the following key bindings to your configuration
files.
@@ -360,6 +360,20 @@ when it's running on Ruby 1.8. If you experience the problem, upgrade your Ruby
to 1.9 or above. Ruby 1.9 or above is also required for displaying Unicode
characters.
+### Ranking algorithm
+
+fzf sorts the result first by the length of the matched substring, then by the
+length of the whole string. However it only does so when the number of matches
+is less than the limit which is by default 1000, in order to avoid the cost of
+sorting a large list and limit the response time of the query.
+
+This limit can be adjusted with `-s` option, or with the environment variable
+`FZF_DEFAULT_SORT`.
+
+```sh
+export FZF_DEFAULT_SORT=10000
+```
+
License
-------