docs: fix outdated documentation (#2564)

* fix outdated information regarding `dircounts`

* generate docs for `sortignorecase`/`sortignoredia`
This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-05-02 05:31:29 +02:00
1 parent a88d55e077
commit 8d138cfd4e
3 files changed
+22 -11

No files matched your search

+1 -1
View File
@@ -905,7 +905,7 @@ When this option is enabled, directory sizes show the number of items inside ins
This information needs to be calculated by reading the directory and counting the items inside. This information needs to be calculated by reading the directory and counting the items inside.
Therefore, this option is disabled by default for performance reasons. Therefore, this option is disabled by default for performance reasons.
This option only has an effect when `info` has a `size` field and the pane is wide enough to show the information. This option only has an effect when `info` has a `size` field and the pane is wide enough to show the information.
999 items are counted per directory at most, and bigger directories are shown as `999+`. 9999 items are counted per directory at most, and bigger directories are shown as `9999+`.
## dirfirst (bool) (default true) ## dirfirst (bool) (default true)
+2 -2
View File
@@ -972,8 +972,8 @@ calculated for each directory using calcdirsize. This information needs
to be calculated by reading the directory and counting the items inside. to be calculated by reading the directory and counting the items inside.
Therefore, this option is disabled by default for performance reasons. Therefore, this option is disabled by default for performance reasons.
This option only has an effect when info has a size field and the pane This option only has an effect when info has a size field and the pane
is wide enough to show the information. 999 items are counted per is wide enough to show the information. 9999 items are counted per
directory at most, and bigger directories are shown as 999+. directory at most, and bigger directories are shown as 9999+.
dirfirst (bool) (default true) dirfirst (bool) (default true)
+19 -8
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2 .\" Automatically generated by Pandoc 3.7.0.2
.\" .\"
.TH "LF" "1" "2026\-04\-08" "r42" "DOCUMENTATION" .TH "LF" "1" "2026\-05\-02" "r42" "DOCUMENTATION"
.SH NAME .SH NAME
lf \- terminal file manager lf \- terminal file manager
.SH SYNOPSIS .SH SYNOPSIS
@@ -340,6 +340,8 @@ sizeunits string (default \(aqbinary\(aq)
smartcase bool (default true) smartcase bool (default true)
smartdia bool (default false) smartdia bool (default false)
sortby string (default \(aqnatural\(aq) sortby string (default \(aqnatural\(aq)
sortignorecase bool (default true)
sortignoredia bool (default true)
statfmt string (default \(dq\(rs033[36m%p\(rs033[0m| %c| %u| %g| %S| %t| \-> %l\(dq) statfmt string (default \(dq\(rs033[36m%p\(rs033[0m| %c| %u| %g| %S| %t| \-> %l\(dq)
tabstop int (default 8) tabstop int (default 8)
tagfmt string (default \(dq\(rs033[31m\(dq) tagfmt string (default \(dq\(rs033[31m\(dq)
@@ -872,8 +874,8 @@ Therefore, this option is disabled by default for performance reasons.
This option only has an effect when \f[CR]info\f[R] has a This option only has an effect when \f[CR]info\f[R] has a
\f[CR]size\f[R] field and the pane is wide enough to show the \f[CR]size\f[R] field and the pane is wide enough to show the
information. information.
999 items are counted per directory at most, and bigger directories are 9999 items are counted per directory at most, and bigger directories are
shown as \f[CR]999+\f[R]. shown as \f[CR]9999+\f[R].
.SS dirfirst (bool) (default true) .SS dirfirst (bool) (default true)
Show directories first above regular files. Show directories first above regular files.
With \f[CR]dircounts\f[R] enabled, sorting by \f[CR]size\f[R] always With \f[CR]dircounts\f[R] enabled, sorting by \f[CR]size\f[R] always
@@ -947,9 +949,11 @@ shells.
This option has no effect when the value is left empty. This option has no effect when the value is left empty.
This option does not have any effect on Windows. This option does not have any effect on Windows.
.SS ignorecase (bool) (default true) .SS ignorecase (bool) (default true)
Ignore case in sorting and search patterns. Ignore case in search patterns.
See also \f[CR]sortignorecase\f[R].
.SS ignoredia (bool) (default true) .SS ignoredia (bool) (default true)
Ignore diacritics in sorting and search patterns. Ignore diacritics in search patterns.
See also \f[CR]sortignoredia\f[R].
.SS incfilter (bool) (default false) .SS incfilter (bool) (default false)
Apply filter pattern after each keystroke during filtering. Apply filter pattern after each keystroke during filtering.
.SS incsearch (bool) (default false) .SS incsearch (bool) (default false)
@@ -1160,8 +1164,8 @@ Determines whether file sizes are displayed using binary units
(\f[CR]1K\f[R] is 1024 bytes) or decimal units (\f[CR]1K\f[R] is 1000 (\f[CR]1K\f[R] is 1024 bytes) or decimal units (\f[CR]1K\f[R] is 1000
bytes). bytes).
.SS smartcase (bool) (default true) .SS smartcase (bool) (default true)
Override \f[CR]ignorecase\f[R] option when the pattern contains an Override \f[CR]ignorecase\f[R] option for searching when the pattern
uppercase character. contains an uppercase character.
This option has no effect when \f[CR]ignorecase\f[R] is disabled. This option has no effect when \f[CR]ignorecase\f[R] is disabled.
.SS smartdia (bool) (default false) .SS smartdia (bool) (default false)
Override \f[CR]ignoredia\f[R] option when the pattern contains a Override \f[CR]ignoredia\f[R] option when the pattern contains a
@@ -1183,6 +1187,12 @@ btime time of file birth
ctime time of last status (inode) change ctime time of last status (inode) change
custom property defined via \(gaaddcustominfo\(ga (empty by default) custom property defined via \(gaaddcustominfo\(ga (empty by default)
.EE .EE
.SS sortignorecase (bool) (default true)
Ignore case when sorting.
See also \f[CR]ignorecase\f[R].
.SS sortignoredia (bool) (default true)
Ignore diacritics when sorting.
See also \f[CR]ignoredia\f[R].
.SS statfmt (string) (default \f[CR]\(rs033[36m%p\(rs033[0m| %c| %u| %g| %S| %t| \-> %l\f[R]) .SS statfmt (string) (default \f[CR]\(rs033[36m%p\(rs033[0m| %c| %u| %g| %S| %t| \-> %l\f[R])
Format string of the file info shown in the bottom left corner. Format string of the file info shown in the bottom left corner.
This option has no effect unless \f[CR]rulerfmt\f[R] is also set. This option has no effect unless \f[CR]rulerfmt\f[R] is also set.
@@ -1439,7 +1449,8 @@ Command \f[CR]setlocal\f[R] is used to set a local option for a
directory which can be a boolean or string. directory which can be a boolean or string.
Currently supported local options are \f[CR]dircounts\f[R], Currently supported local options are \f[CR]dircounts\f[R],
\f[CR]dirfirst\f[R], \f[CR]dironly\f[R], \f[CR]hidden\f[R], \f[CR]dirfirst\f[R], \f[CR]dironly\f[R], \f[CR]hidden\f[R],
\f[CR]info\f[R], \f[CR]reverse\f[R] and \f[CR]sortby\f[R]. \f[CR]info\f[R], \f[CR]reverse\f[R], \f[CR]sortby\f[R],
\f[CR]sortignorecase\f[R] and \f[CR]sortignoredia\f[R].
.IP .IP
.EX .EX
setlocal /foo/bar hidden # boolean enable setlocal /foo/bar hidden # boolean enable