mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Describe FuzzyLongestSort flag in the document
This commit is contained in:
parent
8c3265f159
commit
06a80bf8a9
|
|
@ -65,7 +65,7 @@ The SmartCase filter uses case-*insensitive* matching when all of the queries ar
|
|||
|
||||
The Regexp filter allows you to use any valid regular expression to match lines.
|
||||
|
||||
The Fuzzy filter allows you to find matches using partial patterns. For example, when searching for `ALongString`, you can enable the Fuzzy filter and search `ALS` to find it. The Fuzzy filter uses smart case search like the SmartCase filter.
|
||||
The Fuzzy filter allows you to find matches using partial patterns. For example, when searching for `ALongString`, you can enable the Fuzzy filter and search `ALS` to find it. The Fuzzy filter uses smart case search like the SmartCase filter. With the `FuzzyLongestSort` flag enabled in the configuration file, it does a smarter match. It sorts the matched lines by the following precedence: 1. longer substring, 2. earlier (left positioned) substring, and 3. shorter line.
|
||||
|
||||

|
||||
|
||||
|
|
@ -286,6 +286,12 @@ You can change the query line's prompt, which is `QUERY>` by default.
|
|||
|
||||
Specifies the filter name to start peco with. You should specify the name of the filter, such as `IgnoreCase`, `CaseSensitive`, `SmartCase`, `Regexp` and `Fuzzy`.
|
||||
|
||||
### FuzzyLongestSort
|
||||
|
||||
Enables the longest substring match and sorts the output. It affects only the Fuzzy filter.
|
||||
|
||||
Default value for FuzzyLongestSort is false.
|
||||
|
||||
### StickySelection
|
||||
|
||||
```json
|
||||
|
|
|
|||
Loading…
Reference in a new issue