feat!: Add sortignorecase/sortignoredia options to decouple sorting from searching
* add sortignorecase option for sorting * format code * remove unnecessary position updates * decouple sorting and searching sensitivity options * Decouple sorting and searching case/diacritics sensitivity
This commit is contained in:
5 files changed
+119
-55
No files matched your search
@@ -328,6 +328,8 @@ The following options can be used to customize the behavior of lf:
|
||||
smartcase bool (default true)
|
||||
smartdia bool (default false)
|
||||
sortby string (default 'natural')
|
||||
sortignorecase bool (default true)
|
||||
sortignoredia bool (default true)
|
||||
statfmt string (default "\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l")
|
||||
tabstop int (default 8)
|
||||
tagfmt string (default "\033[31m")
|
||||
@@ -1059,11 +1061,11 @@ option does not have any effect on Windows.
|
||||
|
||||
ignorecase (bool) (default true)
|
||||
|
||||
Ignore case in sorting and search patterns.
|
||||
Ignore case in search patterns. See also sortignorecase.
|
||||
|
||||
ignoredia (bool) (default true)
|
||||
|
||||
Ignore diacritics in sorting and search patterns.
|
||||
Ignore diacritics in search patterns. See also sortignoredia.
|
||||
|
||||
incfilter (bool) (default false)
|
||||
|
||||
@@ -1304,8 +1306,9 @@ Determines whether file sizes are displayed using binary units (1K is
|
||||
|
||||
smartcase (bool) (default true)
|
||||
|
||||
Override ignorecase option when the pattern contains an uppercase
|
||||
character. This option has no effect when ignorecase is disabled.
|
||||
Override ignorecase option for searching when the pattern contains an
|
||||
uppercase character. This option has no effect when ignorecase is
|
||||
disabled.
|
||||
|
||||
smartdia (bool) (default false)
|
||||
|
||||
@@ -1328,6 +1331,14 @@ The following sort types are supported:
|
||||
ctime time of last status (inode) change
|
||||
custom property defined via `addcustominfo` (empty by default)
|
||||
|
||||
sortignorecase (bool) (default true)
|
||||
|
||||
Ignore case when sorting. See also ignorecase.
|
||||
|
||||
sortignoredia (bool) (default true)
|
||||
|
||||
Ignore diacritics when sorting. See also ignoredia.
|
||||
|
||||
statfmt (string) (default \033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l)
|
||||
|
||||
Format string of the file info shown in the bottom left corner. This
|
||||
@@ -1643,7 +1654,8 @@ string:
|
||||
|
||||
Command setlocal is used to set a local option for a directory which can
|
||||
be a boolean or string. Currently supported local options are dircounts,
|
||||
dirfirst, dironly, hidden, info, reverse and sortby.
|
||||
dirfirst, dironly, hidden, info, reverse, sortby, sortignorecase and
|
||||
sortignoredia.
|
||||
|
||||
setlocal /foo/bar hidden # boolean enable
|
||||
setlocal /foo/bar hidden true # boolean enable
|
||||
|
||||
Reference in new issue
Block a user