You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use substring filtering instead of fuzzy filtering by default (#3376)
By default we now search for substrings; you can search for multiple
substrings by separating them with spaces. Add a config option
`gui.filterMode` that can be set to 'fuzzy' to switch back to the
previous behavior.
Addresses #3373.
Copy file name to clipboardExpand all lines: docs/Config.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,7 @@ gui:
86
86
border: 'rounded'# one of 'single' | 'double' | 'rounded' | 'hidden'
87
87
animateExplosion: true # shows an explosion animation when nuking the working tree
88
88
portraitMode: 'auto'# one of 'auto' | 'never' | 'always'
89
+
filterMode: 'substring'# one of 'substring' | 'fuzzy'; see 'Filtering' section below
89
90
git:
90
91
paging:
91
92
colorArg: always
@@ -374,6 +375,12 @@ That's the behavior when `gui.scrollOffBehavior` is set to "margin" (the default
374
375
375
376
This setting applies both to all list views (e.g. commits and branches etc), and to the staging view.
376
377
378
+
## Filtering
379
+
380
+
We have two ways to filter things, substring matching (the default) and fuzzy searching. With substring matching, the text you enter gets searched for verbatim (usually case-insensitive, except when your filter string contains uppercase letters, in which case we search case-sensitively). You can search for multiple non-contiguous substrings by separating them with spaces; for example, "int test" will match "integration-testing". All substrings have to match, but not necessarily in the given order.
381
+
382
+
Fuzzy searching is smarter in that it allows every letter of the filter string to match anywhere in the text (only in order though), assigning a weight to the quality of the match and sorting by that order. This has the advantage that it allows typing "clt" to match "commit_loader_test" (letters at the beginning of subwords get more weight); but it has the disadvantage that it tends to return lots of irrelevant results, especially with short filter strings.
383
+
377
384
## Color Attributes
378
385
379
386
For color attributes you can choose an array of attributes (with max one color attribute)
0 commit comments