From e09993f9199c5a3de3c32cde9af617dd025d1330 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 22 Dec 2013 00:22:23 +0900 Subject: [PATCH] Update README --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf6ca41..90c15cd 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 -------