Update generated documentation (#1580)

This commit is contained in:
Joe Lim authored and GitHub committed 2024-01-18 14:51:04 +11:00
1 parent b401318046
commit 8a14749154
2 files changed
+163 -127

No files matched your search

+83 -63
View File
@@ -126,69 +126,73 @@ The following command line commands are provided by lf:
The following options can be used to customize the behavior of lf: The following options can be used to customize the behavior of lf:
anchorfind bool (default true) anchorfind bool (default true)
autoquit bool (default false) autoquit bool (default false)
borderfmt string (default "\033[0m") borderfmt string (default "\033[0m")
cleaner string (default '') cleaner string (default '')
cursoractivefmt string (default "\033[7m") copyfmt string (default "\033[7;33m")
cursorparentfmt string (default "\033[7m") cursoractivefmt string (default "\033[7m")
cursorpreviewfmt string (default "\033[4m") cursorparentfmt string (default "\033[7m")
dircache bool (default true) cursorpreviewfmt string (default "\033[4m")
dircounts bool (default false) cutfmt string (default "\033[7;31m")
dirfirst bool (default true) dircache bool (default true)
dironly bool (default false) dircounts bool (default false)
dirpreviews bool (default false) dirfirst bool (default true)
drawbox bool (default false) dironly bool (default false)
dupfilefmt string (default '%f.~%n~') dirpreviews bool (default false)
errorfmt string (default "\033[7;31;47m") drawbox bool (default false)
filesep string (default "\n") dupfilefmt string (default '%f.~%n~')
findlen int (default 1) errorfmt string (default "\033[7;31;47m")
globsearch bool (default false) filesep string (default "\n")
hidden bool (default false) findlen int (default 1)
hiddenfiles []string (default '.*') globsearch bool (default false)
history bool (default true) hidden bool (default false)
icons bool (default false) hiddenfiles []string (default '.*')
ifs string (default '') hidecursorinactive bool (default false)
ignorecase bool (default true) history bool (default true)
ignoredia bool (default true) icons bool (default false)
incfilter bool (default false) ifs string (default '')
incsearch bool (default false) ignorecase bool (default true)
info []string (default '') ignoredia bool (default true)
infotimefmtnew string (default 'Jan _2 15:04') incfilter bool (default false)
infotimefmtold string (default 'Jan _2 2006') incsearch bool (default false)
mouse bool (default false) info []string (default '')
number bool (default false) infotimefmtnew string (default 'Jan _2 15:04')
numberfmt string (default "\033[33m") infotimefmtold string (default 'Jan _2 2006')
period int (default 0) mouse bool (default false)
preserve []string (default "mode") number bool (default false)
preview bool (default true) numberfmt string (default "\033[33m")
previewer string (default '') period int (default 0)
promptfmt string (default "\033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m") preserve []string (default "mode")
ratios []int (default '1:2:3') preview bool (default true)
relativenumber bool (default false) previewer string (default '')
reverse bool (default false) promptfmt string (default "\033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m")
ruler []string (default 'acc:progress:selection:filter:ind') ratios []int (default '1:2:3')
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;34m %f \033[0m| %i/%t") relativenumber bool (default false)
scrolloff int (default 0) reverse bool (default false)
selmode string (default 'all') ruler []string (default 'acc:progress:selection:filter:ind')
shell string (default 'sh' for Unix and 'cmd' for Windows) 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;34m %f \033[0m| %i/%t")
shellflag string (default '-c' for Unix and '/c' for Windows) scrolloff int (default 0)
shellopts []string (default '') selectfmt string (default "\033[7;35m")
sixel bool (default false) selmode string (default 'all')
smartcase bool (default true) shell string (default 'sh' for Unix and 'cmd' for Windows)
smartdia bool (default false) shellflag string (default '-c' for Unix and '/c' for Windows)
sortby string (default 'natural') shellopts []string (default '')
statfmt string (default "\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l") sixel bool (default false)
tabstop int (default 8) smartcase bool (default true)
tagfmt string (default "\033[31m") smartdia bool (default false)
tempmarks string (default '') sortby string (default 'natural')
timefmt string (default 'Mon Jan _2 15:04:05 2006') statfmt string (default "\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l")
truncatechar string (default '~') tabstop int (default 8)
truncatepct int (default 100) tagfmt string (default "\033[31m")
waitmsg string (default 'Press any key to continue') tempmarks string (default '')
wrapscan bool (default true) timefmt string (default 'Mon Jan _2 15:04:05 2006')
wrapscroll bool (default false) truncatechar string (default '~')
user_{option} string (default none) truncatepct int (default 100)
waitmsg string (default 'Press any key to continue')
wrapscan bool (default true)
wrapscroll bool (default false)
user_{option} string (default none)
The following environment variables are exported for shell commands: The following environment variables are exported for shell commands:
@@ -705,6 +709,10 @@ height, (4) horizontal position, (5) vertical position of preview pane
and (6) next file name to be previewed respectively. Preview cleaning is and (6) next file name to be previewed respectively. Preview cleaning is
disabled when the value of this option is left empty. disabled when the value of this option is left empty.
copyfmt (string) (default \033[7;33m)
Format string of the indicator for files to be copied.
cursoractivefmt (string) (default \033[7m), cursorparentfmt string (default \033[7m), cursorpreviewfmt string (default \033[4m) cursoractivefmt (string) (default \033[7m), cursorparentfmt string (default \033[7m), cursorpreviewfmt string (default \033[4m)
Format strings for highlighting the cursor. cursoractivefmt applies in Format strings for highlighting the cursor. cursoractivefmt applies in
@@ -725,6 +733,10 @@ format string for fmt.Sprintf. Such a string should end with the
terminal reset sequence. For example, \033[4m%s\033[0m has the same terminal reset sequence. For example, \033[4m%s\033[0m has the same
effect as \033[4m. effect as \033[4m.
cutfmt (string) (default \033[7;31m)
Format string of the indicator for files to be cut.
dircache (bool) (default true) dircache (bool) (default true)
Cache directory contents. Cache directory contents.
@@ -806,6 +818,10 @@ match character sets or ranges. In addition, if a pattern starts with !,
then its matches are excluded from hidden files. To add multiple then its matches are excluded from hidden files. To add multiple
patterns, use : as a separator. Example: .*:lost+found:*.bak patterns, use : as a separator. Example: .*:lost+found:*.bak
hidecursorinactive (bool) (default false)
Hide the cursor when the terminal or tmux pane loses focus.
history (bool) (default true) history (bool) (default true)
Save command history. Save command history.
@@ -972,6 +988,10 @@ user-defined options, in the form %{lf_user_<name>} (e.g.
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.
selectfmt (string) (default \033[7;35m)
Format string of the indicator for files that are selected.
selmode (string) (default all) selmode (string) (default all)
Selection mode for commands. When set to all it will use the selected Selection mode for commands. When set to all it will use the selected
+80 -64
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 2.11.4 .\" Automatically generated by Pandoc 2.11.4
.\" .\"
.TH "LF" "1" "2023-12-19" "r27-218-g39ad76d" "DOCUMENTATION" .TH "LF" "1" "2024-01-18" "" "DOCUMENTATION"
.hy .hy
.SH NAME .SH NAME
.PP .PP
@@ -144,69 +144,73 @@ The following options can be used to customize the behavior of lf:
.IP .IP
.nf .nf
\f[C] \f[C]
anchorfind bool (default true) anchorfind bool (default true)
autoquit bool (default false) autoquit bool (default false)
borderfmt string (default \[dq]\[rs]033[0m\[dq]) borderfmt string (default \[dq]\[rs]033[0m\[dq])
cleaner string (default \[aq]\[aq]) cleaner string (default \[aq]\[aq])
cursoractivefmt string (default \[dq]\[rs]033[7m\[dq]) copyfmt string (default \[dq]\[rs]033[7;33m\[dq])
cursorparentfmt string (default \[dq]\[rs]033[7m\[dq]) cursoractivefmt string (default \[dq]\[rs]033[7m\[dq])
cursorpreviewfmt string (default \[dq]\[rs]033[4m\[dq]) cursorparentfmt string (default \[dq]\[rs]033[7m\[dq])
dircache bool (default true) cursorpreviewfmt string (default \[dq]\[rs]033[4m\[dq])
dircounts bool (default false) cutfmt string (default \[dq]\[rs]033[7;31m\[dq])
dirfirst bool (default true) dircache bool (default true)
dironly bool (default false) dircounts bool (default false)
dirpreviews bool (default false) dirfirst bool (default true)
drawbox bool (default false) dironly bool (default false)
dupfilefmt string (default \[aq]%f.\[ti]%n\[ti]\[aq]) dirpreviews bool (default false)
errorfmt string (default \[dq]\[rs]033[7;31;47m\[dq]) drawbox bool (default false)
filesep string (default \[dq]\[rs]n\[dq]) dupfilefmt string (default \[aq]%f.\[ti]%n\[ti]\[aq])
findlen int (default 1) errorfmt string (default \[dq]\[rs]033[7;31;47m\[dq])
globsearch bool (default false) filesep string (default \[dq]\[rs]n\[dq])
hidden bool (default false) findlen int (default 1)
hiddenfiles []string (default \[aq].*\[aq]) globsearch bool (default false)
history bool (default true) hidden bool (default false)
icons bool (default false) hiddenfiles []string (default \[aq].*\[aq])
ifs string (default \[aq]\[aq]) hidecursorinactive bool (default false)
ignorecase bool (default true) history bool (default true)
ignoredia bool (default true) icons bool (default false)
incfilter bool (default false) ifs string (default \[aq]\[aq])
incsearch bool (default false) ignorecase bool (default true)
info []string (default \[aq]\[aq]) ignoredia bool (default true)
infotimefmtnew string (default \[aq]Jan _2 15:04\[aq]) incfilter bool (default false)
infotimefmtold string (default \[aq]Jan _2 2006\[aq]) incsearch bool (default false)
mouse bool (default false) info []string (default \[aq]\[aq])
number bool (default false) infotimefmtnew string (default \[aq]Jan _2 15:04\[aq])
numberfmt string (default \[dq]\[rs]033[33m\[dq]) infotimefmtold string (default \[aq]Jan _2 2006\[aq])
period int (default 0) mouse bool (default false)
preserve []string (default \[dq]mode\[dq]) number bool (default false)
preview bool (default true) numberfmt string (default \[dq]\[rs]033[33m\[dq])
previewer string (default \[aq]\[aq]) period int (default 0)
promptfmt string (default \[dq]\[rs]033[32;1m%u\[at]%h\[rs]033[0m:\[rs]033[34;1m%d\[rs]033[0m\[rs]033[1m%f\[rs]033[0m\[dq]) preserve []string (default \[dq]mode\[dq])
ratios []int (default \[aq]1:2:3\[aq]) preview bool (default true)
relativenumber bool (default false) previewer string (default \[aq]\[aq])
reverse bool (default false) promptfmt string (default \[dq]\[rs]033[32;1m%u\[at]%h\[rs]033[0m:\[rs]033[34;1m%d\[rs]033[0m\[rs]033[1m%f\[rs]033[0m\[dq])
ruler []string (default \[aq]acc:progress:selection:filter:ind\[aq]) ratios []int (default \[aq]1:2:3\[aq])
rulerfmt string (default \[dq] %a| %p| \[rs]033[7;31m %m \[rs]033[0m| \[rs]033[7;33m %c \[rs]033[0m| \[rs]033[7;35m %s \[rs]033[0m| \[rs]033[7;34m %f \[rs]033[0m| %i/%t\[dq]) relativenumber bool (default false)
scrolloff int (default 0) reverse bool (default false)
selmode string (default \[aq]all\[aq]) ruler []string (default \[aq]acc:progress:selection:filter:ind\[aq])
shell string (default \[aq]sh\[aq] for Unix and \[aq]cmd\[aq] for Windows) rulerfmt string (default \[dq] %a| %p| \[rs]033[7;31m %m \[rs]033[0m| \[rs]033[7;33m %c \[rs]033[0m| \[rs]033[7;35m %s \[rs]033[0m| \[rs]033[7;34m %f \[rs]033[0m| %i/%t\[dq])
shellflag string (default \[aq]-c\[aq] for Unix and \[aq]/c\[aq] for Windows) scrolloff int (default 0)
shellopts []string (default \[aq]\[aq]) selectfmt string (default \[dq]\[rs]033[7;35m\[dq])
sixel bool (default false) selmode string (default \[aq]all\[aq])
smartcase bool (default true) shell string (default \[aq]sh\[aq] for Unix and \[aq]cmd\[aq] for Windows)
smartdia bool (default false) shellflag string (default \[aq]-c\[aq] for Unix and \[aq]/c\[aq] for Windows)
sortby string (default \[aq]natural\[aq]) shellopts []string (default \[aq]\[aq])
statfmt string (default \[dq]\[rs]033[36m%p\[rs]033[0m| %c| %u| %g| %S| %t| -> %l\[dq]) sixel bool (default false)
tabstop int (default 8) smartcase bool (default true)
tagfmt string (default \[dq]\[rs]033[31m\[dq]) smartdia bool (default false)
tempmarks string (default \[aq]\[aq]) sortby string (default \[aq]natural\[aq])
timefmt string (default \[aq]Mon Jan _2 15:04:05 2006\[aq]) statfmt string (default \[dq]\[rs]033[36m%p\[rs]033[0m| %c| %u| %g| %S| %t| -> %l\[dq])
truncatechar string (default \[aq]\[ti]\[aq]) tabstop int (default 8)
truncatepct int (default 100) tagfmt string (default \[dq]\[rs]033[31m\[dq])
waitmsg string (default \[aq]Press any key to continue\[aq]) tempmarks string (default \[aq]\[aq])
wrapscan bool (default true) timefmt string (default \[aq]Mon Jan _2 15:04:05 2006\[aq])
wrapscroll bool (default false) truncatechar string (default \[aq]\[ti]\[aq])
user_{option} string (default none) truncatepct int (default 100)
waitmsg string (default \[aq]Press any key to continue\[aq])
wrapscan bool (default true)
wrapscroll bool (default false)
user_{option} string (default none)
\f[R] \f[R]
.fi .fi
.PP .PP
@@ -726,6 +730,9 @@ The following arguments are passed to the file, (1) current file name,
preview pane and (6) next file name to be previewed respectively. preview pane and (6) next file name to be previewed respectively.
Preview cleaning is disabled when the value of this option is left Preview cleaning is disabled when the value of this option is left
empty. empty.
.SS copyfmt (string) (default \f[C]\[rs]033[7;33m\f[R])
.PP
Format string of the indicator for files to be copied.
.SS cursoractivefmt (string) (default \f[C]\[rs]033[7m\f[R]), cursorparentfmt string (default \f[C]\[rs]033[7m\f[R]), cursorpreviewfmt string (default \f[C]\[rs]033[4m\f[R]) .SS cursoractivefmt (string) (default \f[C]\[rs]033[7m\f[R]), cursorparentfmt string (default \f[C]\[rs]033[7m\f[R]), cursorpreviewfmt string (default \f[C]\[rs]033[4m\f[R])
.PP .PP
Format strings for highlighting the cursor. Format strings for highlighting the cursor.
@@ -748,6 +755,9 @@ interpreted as a format string for \f[C]fmt.Sprintf\f[R].
Such a string should end with the terminal reset sequence. Such a string should end with the terminal reset sequence.
For example, \f[C]\[rs]033[4m%s\[rs]033[0m\f[R] has the same effect as For example, \f[C]\[rs]033[4m%s\[rs]033[0m\f[R] has the same effect as
\f[C]\[rs]033[4m\f[R]. \f[C]\[rs]033[4m\f[R].
.SS cutfmt (string) (default \f[C]\[rs]033[7;31m\f[R])
.PP
Format string of the indicator for files to be cut.
.SS dircache (bool) (default true) .SS dircache (bool) (default true)
.PP .PP
Cache directory contents. Cache directory contents.
@@ -830,6 +840,9 @@ In addition, if a pattern starts with \f[C]!\f[R], then its matches are
excluded from hidden files. excluded from hidden files.
To add multiple patterns, use \f[C]:\f[R] as a separator. To add multiple patterns, use \f[C]:\f[R] as a separator.
Example: \f[C].*:lost+found:*.bak\f[R] Example: \f[C].*:lost+found:*.bak\f[R]
.SS hidecursorinactive (bool) (default false)
.PP
Hide the cursor when the terminal or tmux pane loses focus.
.SS history (bool) (default true) .SS history (bool) (default true)
.PP .PP
Save command history. Save command history.
@@ -1003,6 +1016,9 @@ Expansions are also provided for user-defined options, in the form
The \f[C]|\f[R] character splits the format string into sections. The \f[C]|\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
discarded and not shown. discarded and not shown.
.SS selectfmt (string) (default \f[C]\[rs]033[7;35m\f[R])
.PP
Format string of the indicator for files that are selected.
.SS selmode (string) (default \f[C]all\f[R]) .SS selmode (string) (default \f[C]all\f[R])
.PP .PP
Selection mode for commands. Selection mode for commands.