Update docs (#2160)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-09-19 03:39:15 +10:00
1 parent c5075b6455
commit d81c84bbb9
3 files changed
+190 -82

No files matched your search

+56 -9
View File
@@ -863,8 +863,19 @@ Jump to the first match after each keystroke during searching.
## info ([]string) (default ``) ## info ([]string) (default ``)
A list of information that is shown for directory items at the right side of the pane. A list of information that is shown for directory items at the right side of the pane.
Currently supported information types are `size`, `time`, `atime`, `btime`, `ctime`, `perm`, `user`, `group` and `custom`.
The `custom` type is empty by default and can be updated using the `addcustominfo` command. The following information types are supported:
perm file permission
user user name
group group name
size file size
time time of last data modification
atime time of last access
btime time of file birth
ctime time of last status (inode) change
custom property defined via `addcustominfo` (empty by default)
Information is only shown when the pane width is more than twice the width of information. Information is only shown when the pane width is more than twice the width of information.
## infotimefmtnew (string) (default `Jan _2 15:04`) ## infotimefmtnew (string) (default `Jan _2 15:04`)
@@ -933,7 +944,17 @@ Preview filtering is disabled and files are displayed as they are when the value
## promptfmt (string) (default `\033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m`) ## promptfmt (string) (default `\033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m`)
Format string of the prompt shown in the top line. Format string of the prompt shown in the top line.
Special expansions are provided, `%u` as the user name, `%h` as the hostname, `%w` as the working directory, `%d` as the working directory with a trailing path separator, `%f` as the filename, and `%F` as the current filter. `%S` may be used once and will provide a spacer so that the following parts are right-aligned on the screen.
The following special expansions are supported:
%f file name
%h host name
%u user name
%w working directory
%d working directory (with trailing path separator)
%F current filter
%S spacer to right-align the following parts (can be used once)
The home folder is shown as `~` in the working directory expansion. The home folder is shown as `~` in the working directory expansion.
Directory names are automatically shortened to a single character starting from the leftmost parent when the prompt does not fit the screen. Directory names are automatically shortened to a single character starting from the leftmost parent when the prompt does not fit the screen.
@@ -959,7 +980,22 @@ Draw rounded outer corners when the `drawbox` option is enabled.
## rulerfmt (string) (default ` %a| %p| \033[7;31m %m \033[0m| \033[7;33m %c \033[0m| \033[7;35m %s \033[0m| \033[7;36m %v \033[0m| \033[7;34m %f \033[0m| %i/%t`) ## rulerfmt (string) (default ` %a| %p| \033[7;31m %m \033[0m| \033[7;33m %c \033[0m| \033[7;35m %s \033[0m| \033[7;36m %v \033[0m| \033[7;34m %f \033[0m| %i/%t`)
Format string of the ruler shown in the bottom right corner. Format string of the ruler shown in the bottom right corner.
Special expansions are provided, `%a` as the pressed keys, `%p` as the progress of file operations, `%m` as the number of files to be cut (moved), `%c` as the number of files to be copied, `%s` as the number of selected files, `%v` as the number of visually selected files, `%f` as the filter, `%i` as the position of the cursor, `%t` as the number of files shown in the current directory, `%h` as the number of files hidden in the current directory, `%P` as the scroll percentage, and `%d` as the amount of free disk space remaining.
The following special expansions are supported:
%a pressed keys
%p progress of file operations
%m number of files to be cut (moved)
%c number of files to be copied
%s number of selected files
%v number of visually selected files
%t number of shown files in the current directory
%h number of hidden files in the current directory
%f current filter
%i cursor position
%P scroll percentage
%d amount of free disk space
Additional expansions are provided for environment variables exported by lf, in the form `%{lf_<name>}` (e.g. `%{lf_selmode}`). This is useful for displaying the current settings. Additional expansions are provided for environment variables exported by lf, in the form `%{lf_<name>}` (e.g. `%{lf_selmode}`). This is useful for displaying the current settings.
Expansions are also provided for user-defined options, in the form `%{lf_user_<name>}` (e.g. `%{lf_user_foo}`). Expansions are also provided for user-defined options, in the form `%{lf_user_<name>}` (e.g. `%{lf_user_foo}`).
The `|` character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown. The `|` character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown.
@@ -1020,24 +1056,35 @@ This option has no effect when `ignoredia` is disabled.
## sortby (string) (default `natural`) ## sortby (string) (default `natural`)
Sort type for directories. Sort type for directories.
Currently supported sort types are `natural`, `name`, `size`, `time`, `atime`, `btime`, `ctime`, `ext` and `custom`.
Meaning of each sort type: The following sort types are supported:
natural file name (track_2.flac comes before track_10.flac) natural file name (track_2.flac comes before track_10.flac)
name file name (track_10.flac comes before track_2.flac) name file name (track_10.flac comes before track_2.flac)
ext file extension
size file size size file size
time time of last data modification time time of last data modification
atime time of last access atime time of last access
btime time of file birth btime time of file birth
ctime time of last status (inode) change ctime time of last status (inode) change
ext file extension custom property defined via `addcustominfo` (empty by default)
custom property defined via `addcustominfo`
## statfmt (string) (default `\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l`) ## 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. Format string of the file info shown in the bottom left corner.
Special expansions are provided, `%p` as the file permissions, `%c` as the link count, `%u` as the user, `%g` as the group, `%s` as the file size, `%S` as the file size but with a fixed width of five characters (left-padded with spaces), `%t` as the last modified time, `%l` as the link target, `%m` as the current mode and `%M` as the current mode but also shown in Normal mode (displaying `NORMAL` instead of a blank string).
The following special expansions are supported:
%p file permission
%c link count
%u user name
%g group name
%s file size
%S file size (left-padded with spaces to a fixed width of 5 characters)
%t time of last data modification
%l link target
%m current mode
%M current mode (displaying `NORMAL` instead of a blank string in Normal mode)
The `|` character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown. The `|` character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown.
+69 -36
View File
@@ -915,9 +915,20 @@ Jump to the first match after each keystroke during searching.
info ([]string) (default ``) info ([]string) (default ``)
A list of information that is shown for directory items at the right A list of information that is shown for directory items at the right
side of the pane. Currently supported information types are size, time, side of the pane.
atime, btime, ctime, perm, user, group and custom. The custom type is
empty by default and can be updated using the addcustominfo command. The following information types are supported:
perm file permission
user user name
group group name
size file size
time time of last data modification
atime time of last access
btime time of file birth
ctime time of last status (inode) change
custom property defined via `addcustominfo` (empty by default)
Information is only shown when the pane width is more than twice the Information is only shown when the pane width is more than twice the
width of information. width of information.
@@ -997,15 +1008,22 @@ option is left empty.
promptfmt (string) (default \033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m) promptfmt (string) (default \033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m)
Format string of the prompt shown in the top line. Special expansions Format string of the prompt shown in the top line.
are provided, %u as the user name, %h as the hostname, %w as the working
directory, %d as the working directory with a trailing path separator, The following special expansions are supported:
%f as the filename, and %F as the current filter. %S may be used once
and will provide a spacer so that the following parts are right-aligned %f file name
on the screen. The home folder is shown as ~ in the working directory %h host name
expansion. Directory names are automatically shortened to a single %u user name
character starting from the leftmost parent when the prompt does not fit %w working directory
the screen. %d working directory (with trailing path separator)
%F current filter
%S spacer to right-align the following parts (can be used once)
The home folder is shown as ~ in the working directory expansion.
Directory names are automatically shortened to a single character
starting from the leftmost parent when the prompt does not fit the
screen.
ratios ([]int) (default 1:2:3) ratios ([]int) (default 1:2:3)
@@ -1029,18 +1047,27 @@ Draw rounded outer corners when the drawbox option is enabled.
rulerfmt (string) (default %a| %p| \033[7;31m %m \033[0m| \033[7;33m %c \033[0m| \033[7;35m %s \033[0m| \033[7;36m %v \033[0m| \033[7;34m %f \033[0m| %i/%t) rulerfmt (string) (default %a| %p| \033[7;31m %m \033[0m| \033[7;33m %c \033[0m| \033[7;35m %s \033[0m| \033[7;36m %v \033[0m| \033[7;34m %f \033[0m| %i/%t)
Format string of the ruler shown in the bottom right corner. Special Format string of the ruler shown in the bottom right corner.
expansions are provided, %a as the pressed keys, %p as the progress of
file operations, %m as the number of files to be cut (moved), %c as the The following special expansions are supported:
number of files to be copied, %s as the number of selected files, %v as
the number of visually selected files, %f as the filter, %i as the %a pressed keys
position of the cursor, %t as the number of files shown in the current %p progress of file operations
directory, %h as the number of files hidden in the current directory, %P %m number of files to be cut (moved)
as the scroll percentage, and %d as the amount of free disk space %c number of files to be copied
remaining. Additional expansions are provided for environment variables %s number of selected files
exported by lf, in the form %{lf_<name>} (e.g. %{lf_selmode}). This is %v number of visually selected files
useful for displaying the current settings. Expansions are also provided %t number of shown files in the current directory
for user-defined options, in the form %{lf_user_<name>} (e.g. %h number of hidden files in the current directory
%f current filter
%i cursor position
%P scroll percentage
%d amount of free disk space
Additional expansions are provided for environment variables exported by
lf, in the form %{lf_<name>} (e.g. %{lf_selmode}). This is useful for
displaying the current settings. Expansions are also provided for
user-defined options, in the form %{lf_user_<name>} (e.g.
%{lf_user_foo}). The | character splits the format string into sections. %{lf_user_foo}). The | character splits the format string into sections.
Any section containing a failed expansion (result is a blank string) is Any section containing a failed expansion (result is a blank string) is
discarded and not shown. discarded and not shown.
@@ -1104,30 +1131,36 @@ diacritic. This option has no effect when ignoredia is disabled.
sortby (string) (default natural) sortby (string) (default natural)
Sort type for directories. Currently supported sort types are natural, Sort type for directories.
name, size, time, atime, btime, ctime, ext and custom.
Meaning of each sort type: The following sort types are supported:
natural file name (track_2.flac comes before track_10.flac) natural file name (track_2.flac comes before track_10.flac)
name file name (track_10.flac comes before track_2.flac) name file name (track_10.flac comes before track_2.flac)
ext file extension
size file size size file size
time time of last data modification time time of last data modification
atime time of last access atime time of last access
btime time of file birth btime time of file birth
ctime time of last status (inode) change ctime time of last status (inode) change
ext file extension custom property defined via `addcustominfo` (empty by default)
custom property defined via `addcustominfo`
statfmt (string) (default \033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l) 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. Special Format string of the file info shown in the bottom left corner.
expansions are provided, %p as the file permissions, %c as the link
count, %u as the user, %g as the group, %s as the file size, %S as the The following special expansions are supported:
file size but with a fixed width of five characters (left-padded with
spaces), %t as the last modified time, %l as the link target, %m as the %p file permission
current mode and %M as the current mode but also shown in Normal mode %c link count
(displaying NORMAL instead of a blank string). %u user name
%g group name
%s file size
%S file size (left-padded with spaces to a fixed width of 5 characters)
%t time of last data modification
%l link target
%m current mode
%M current mode (displaying `NORMAL` instead of a blank string in Normal mode)
The | character splits the format string into sections. Any section The | character splits the format string into sections. Any section
containing a failed expansion (result is a blank string) is discarded containing a failed expansion (result is a blank string) is discarded
+65 -37
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" "2025\-09\-17" "r38" "DOCUMENTATION" .TH "LF" "1" "2025\-09\-18" "r38" "DOCUMENTATION"
.SH NAME .SH NAME
lf \- terminal file manager lf \- terminal file manager
.SH SYNOPSIS .SH SYNOPSIS
@@ -802,12 +802,21 @@ Jump to the first match after each keystroke during searching.
.SS info ([]string) (default \(ga\(ga) .SS info ([]string) (default \(ga\(ga)
A list of information that is shown for directory items at the right A list of information that is shown for directory items at the right
side of the pane. side of the pane.
Currently supported information types are \f[CR]size\f[R], .PP
\f[CR]time\f[R], \f[CR]atime\f[R], \f[CR]btime\f[R], \f[CR]ctime\f[R], The following information types are supported:
\f[CR]perm\f[R], \f[CR]user\f[R], \f[CR]group\f[R] and .IP
\f[CR]custom\f[R]. .EX
The \f[CR]custom\f[R] type is empty by default and can be updated using perm file permission
the \f[CR]addcustominfo\f[R] command. user user name
group group name
size file size
time time of last data modification
atime time of last access
btime time of file birth
ctime time of last status (inode) change
custom property defined via \(gaaddcustominfo\(ga (empty by default)
.EE
.PP
Information is only shown when the pane width is more than twice the Information is only shown when the pane width is more than twice the
width of information. width of information.
.SS infotimefmtnew (string) (default \f[CR]Jan _2 15:04\f[R]) .SS infotimefmtnew (string) (default \f[CR]Jan _2 15:04\f[R])
@@ -869,12 +878,19 @@ Preview filtering is disabled and files are displayed as they are when
the value of this option is left empty. the value of this option is left empty.
.SS promptfmt (string) (default \f[CR]\(rs033[32;1m%u\(at%h\(rs033[0m:\(rs033[34;1m%d\(rs033[0m\(rs033[1m%f\(rs033[0m\f[R]) .SS promptfmt (string) (default \f[CR]\(rs033[32;1m%u\(at%h\(rs033[0m:\(rs033[34;1m%d\(rs033[0m\(rs033[1m%f\(rs033[0m\f[R])
Format string of the prompt shown in the top line. Format string of the prompt shown in the top line.
Special expansions are provided, \f[CR]%u\f[R] as the user name, .PP
\f[CR]%h\f[R] as the hostname, \f[CR]%w\f[R] as the working directory, The following special expansions are supported:
\f[CR]%d\f[R] as the working directory with a trailing path separator, .IP
\f[CR]%f\f[R] as the filename, and \f[CR]%F\f[R] as the current filter. .EX
\f[CR]%S\f[R] may be used once and will provide a spacer so that the %f file name
following parts are right\-aligned on the screen. %h host name
%u user name
%w working directory
%d working directory (with trailing path separator)
%F current filter
%S spacer to right\-align the following parts (can be used once)
.EE
.PP
The home folder is shown as \f[CR]\(ti\f[R] in the working directory The home folder is shown as \f[CR]\(ti\f[R] in the working directory
expansion. expansion.
Directory names are automatically shortened to a single character Directory names are automatically shortened to a single character
@@ -896,16 +912,24 @@ Draw rounded outer corners when the \f[CR]drawbox\f[R] option is
enabled. enabled.
.SS rulerfmt (string) (default \f[CR] %a| %p| \(rs033[7;31m %m \(rs033[0m| \(rs033[7;33m %c \(rs033[0m| \(rs033[7;35m %s \(rs033[0m| \(rs033[7;36m %v \(rs033[0m| \(rs033[7;34m %f \(rs033[0m| %i/%t\f[R]) .SS rulerfmt (string) (default \f[CR] %a| %p| \(rs033[7;31m %m \(rs033[0m| \(rs033[7;33m %c \(rs033[0m| \(rs033[7;35m %s \(rs033[0m| \(rs033[7;36m %v \(rs033[0m| \(rs033[7;34m %f \(rs033[0m| %i/%t\f[R])
Format string of the ruler shown in the bottom right corner. Format string of the ruler shown in the bottom right corner.
Special expansions are provided, \f[CR]%a\f[R] as the pressed keys, .PP
\f[CR]%p\f[R] as the progress of file operations, \f[CR]%m\f[R] as the The following special expansions are supported:
number of files to be cut (moved), \f[CR]%c\f[R] as the number of files .IP
to be copied, \f[CR]%s\f[R] as the number of selected files, .EX
\f[CR]%v\f[R] as the number of visually selected files, \f[CR]%f\f[R] as %a pressed keys
the filter, \f[CR]%i\f[R] as the position of the cursor, \f[CR]%t\f[R] %p progress of file operations
as the number of files shown in the current directory, \f[CR]%h\f[R] as %m number of files to be cut (moved)
the number of files hidden in the current directory, \f[CR]%P\f[R] as %c number of files to be copied
the scroll percentage, and \f[CR]%d\f[R] as the amount of free disk %s number of selected files
space remaining. %v number of visually selected files
%t number of shown files in the current directory
%h number of hidden files in the current directory
%f current filter
%i cursor position
%P scroll percentage
%d amount of free disk space
.EE
.PP
Additional expansions are provided for environment variables exported by Additional expansions are provided for environment variables exported by
lf, in the form \f[CR]%{lf_<name>}\f[R] (e.g. lf, in the form \f[CR]%{lf_<name>}\f[R] (e.g.
\f[CR]%{lf_selmode}\f[R]). \f[CR]%{lf_selmode}\f[R]).
@@ -962,33 +986,37 @@ character with diacritic.
This option has no effect when \f[CR]ignoredia\f[R] is disabled. This option has no effect when \f[CR]ignoredia\f[R] is disabled.
.SS sortby (string) (default \f[CR]natural\f[R]) .SS sortby (string) (default \f[CR]natural\f[R])
Sort type for directories. Sort type for directories.
Currently supported sort types are \f[CR]natural\f[R], \f[CR]name\f[R],
\f[CR]size\f[R], \f[CR]time\f[R], \f[CR]atime\f[R], \f[CR]btime\f[R],
\f[CR]ctime\f[R], \f[CR]ext\f[R] and \f[CR]custom\f[R].
.PP .PP
Meaning of each sort type: The following sort types are supported:
.IP .IP
.EX .EX
natural file name (track_2.flac comes before track_10.flac) natural file name (track_2.flac comes before track_10.flac)
name file name (track_10.flac comes before track_2.flac) name file name (track_10.flac comes before track_2.flac)
ext file extension
size file size size file size
time time of last data modification time time of last data modification
atime time of last access atime time of last access
btime time of file birth btime time of file birth
ctime time of last status (inode) change ctime time of last status (inode) change
ext file extension custom property defined via \(gaaddcustominfo\(ga (empty by default)
custom property defined via \(gaaddcustominfo\(ga
.EE .EE
.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.
Special expansions are provided, \f[CR]%p\f[R] as the file permissions, .PP
\f[CR]%c\f[R] as the link count, \f[CR]%u\f[R] as the user, The following special expansions are supported:
\f[CR]%g\f[R] as the group, \f[CR]%s\f[R] as the file size, .IP
\f[CR]%S\f[R] as the file size but with a fixed width of five characters .EX
(left\-padded with spaces), \f[CR]%t\f[R] as the last modified time, %p file permission
\f[CR]%l\f[R] as the link target, \f[CR]%m\f[R] as the current mode and %c link count
\f[CR]%M\f[R] as the current mode but also shown in Normal mode %u user name
(displaying \f[CR]NORMAL\f[R] instead of a blank string). %g group name
%s file size
%S file size (left\-padded with spaces to a fixed width of 5 characters)
%t time of last data modification
%l link target
%m current mode
%M current mode (displaying \(gaNORMAL\(ga instead of a blank string in Normal mode)
.EE
.PP .PP
The \f[CR]|\f[R] character splits the format string into sections. The \f[CR]|\f[R] character splits the format string into sections.
Any section containing a failed expansion (result is a blank string) is Any section containing a failed expansion (result is a blank string) is