update doc

cc #758
This commit is contained in:
Gokcehan committed 2023-03-16 18:11:29 +03:00
1 parent 207de6a506
commit 41cdd02572
3 files changed
+162 -156

No files matched your search

+54 -52
View File
@@ -113,50 +113,50 @@ 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 on) anchorfind bool (default true)
autoquit bool (default off) autoquit bool (default false)
cleaner string (default '') cleaner string (default '')
cursoractivefmt string (default "\033[7m") cursoractivefmt string (default "\033[7m")
cursorparentfmt string (default "\033[7m") cursorparentfmt string (default "\033[7m")
cursorpreviewfmt string (default "\033[4m") cursorpreviewfmt string (default "\033[4m")
dircache bool (default on) dircache bool (default true)
dircounts bool (default off) dircounts bool (default false)
dirfirst bool (default on) dirfirst bool (default true)
dironly bool (default off) dironly bool (default false)
dirpreviews bool (default off) dirpreviews bool (default false)
drawbox bool (default off) drawbox bool (default false)
errorfmt string (default "\033[7;31;47m") errorfmt string (default "\033[7;31;47m")
filesep string (default "\n") filesep string (default "\n")
findlen int (default 1) findlen int (default 1)
globsearch bool (default off) globsearch bool (default false)
hidden bool (default off) hidden bool (default false)
hiddenfiles []string (default '.*') hiddenfiles []string (default '.*')
history bool (default on) history bool (default true)
icons bool (default off) icons bool (default false)
ifs string (default '') ifs string (default '')
ignorecase bool (default on) ignorecase bool (default true)
ignoredia bool (default on) ignoredia bool (default true)
incfilter bool (default off) incfilter bool (default false)
incsearch bool (default off) incsearch bool (default false)
info []string (default '') info []string (default '')
infotimefmtnew string (default 'Jan _2 15:04') infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006') infotimefmtold string (default 'Jan _2 2006')
mouse bool (default off) mouse bool (default false)
number bool (default off) number bool (default false)
period int (default 0) period int (default 0)
preview bool (default on) preview bool (default true)
previewer string (default '') previewer string (default '')
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")
ratios []int (default '1:2:3') ratios []int (default '1:2:3')
relativenumber bool (default off) relativenumber bool (default false)
reverse bool (default off) reverse bool (default false)
scrolloff int (default 0) scrolloff int (default 0)
selmode string (default 'all') selmode string (default 'all')
shell string (default 'sh' for Unix and 'cmd' for Windows) shell string (default 'sh' for Unix and 'cmd' for Windows)
shellflag string (default '-c' for Unix and '/c' for Windows) shellflag string (default '-c' for Unix and '/c' for Windows)
shellopts []string (default '') shellopts []string (default '')
smartcase bool (default on) smartcase bool (default true)
smartdia bool (default off) smartdia bool (default false)
sortby string (default 'natural') sortby string (default 'natural')
tabstop int (default 8) tabstop int (default 8)
tagfmt string (default "\033[31m") tagfmt string (default "\033[31m")
@@ -164,8 +164,8 @@ The following options can be used to customize the behavior of lf:
timefmt string (default 'Mon Jan _2 15:04:05 2006') timefmt string (default 'Mon Jan _2 15:04:05 2006')
truncatechar string (default '~') truncatechar string (default '~')
waitmsg string (default 'Press any key to continue') waitmsg string (default 'Press any key to continue')
wrapscan bool (default on) wrapscan bool (default true)
wrapscroll bool (default off) wrapscroll bool (default false)
user_{option} string (default none) user_{option} string (default none)
The following environment variables are exported for shell commands: The following environment variables are exported for shell commands:
@@ -610,11 +610,11 @@ List all key mappings.
This section shows information about options to customize the behavior. This section shows information about options to customize the behavior.
Character ':' is used as the separator for list options '[]int' and '[]string'. Character ':' is used as the separator for list options '[]int' and '[]string'.
anchorfind bool (default on) anchorfind bool (default true)
When this option is enabled, find command starts matching patterns from the beginning of file names, otherwise, it can match at an arbitrary position. When this option is enabled, find command starts matching patterns from the beginning of file names, otherwise, it can match at an arbitrary position.
autoquit bool (default off) autoquit bool (default false)
Automatically quit server when there are no clients left connected. Automatically quit server when there are no clients left connected.
@@ -642,11 +642,11 @@ Some other possibilities to consider for the preview or parent cursors: an empty
If the format string contains the characters `%s`, it is interpreted as a format string for `fmt.Sprintf`. Such a string should end with the terminal reset sequence. If the format string contains the characters `%s`, it is interpreted as a 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 effect as "\033[4m". For example, "\033[4m%s\033[0m" has the same effect as "\033[4m".
dircache bool (default on) dircache bool (default true)
Cache directory contents. Cache directory contents.
dircounts bool (default off) dircounts bool (default false)
When this option is enabled, directory sizes show the number of items inside instead of the total size of the directory, which needs to be calculated for each directory using 'calcdirsize'. When this option is enabled, directory sizes show the number of items inside instead of the total size of the directory, which needs to be calculated for each directory using 'calcdirsize'.
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.
@@ -654,19 +654,19 @@ 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+'. 999 items are counted per directory at most, and bigger directories are shown as '999+'.
dirfirst bool (default on) dirfirst bool (default true)
Show directories first above regular files. Show directories first above regular files.
dironly bool (default off) dironly bool (default false)
Show only directories. Show only directories.
dirpreviews bool (default off) dirpreviews bool (default false)
If enabled, directories will also be passed to the previewer script. This allows custom previews for directories. If enabled, directories will also be passed to the previewer script. This allows custom previews for directories.
drawbox bool (default off) drawbox bool (default false)
Draw boxes around panes with box drawing characters. Draw boxes around panes with box drawing characters.
@@ -686,13 +686,13 @@ File separator used in environment variables 'fs' and 'fx'.
Number of characters prompted for the find command. Number of characters prompted for the find command.
When this value is set to 0, find command prompts until there is only a single match left. When this value is set to 0, find command prompts until there is only a single match left.
globsearch bool (default off) globsearch bool (default false)
When this option is enabled, search command patterns are considered as globs, otherwise they are literals. When this option is enabled, search command patterns are considered as globs, otherwise they are literals.
With globbing, '*' matches any sequence, '?' matches any character, and '[...]' or '[^...]' matches character sets or ranges. With globbing, '*' matches any sequence, '?' matches any character, and '[...]' or '[^...]' matches character sets or ranges.
Otherwise, these characters are interpreted as they are. Otherwise, these characters are interpreted as they are.
hidden bool (default off) hidden bool (default false)
Show hidden files. Show hidden files.
On Unix systems, hidden files are determined by the value of 'hiddenfiles'. On Unix systems, hidden files are determined by the value of 'hiddenfiles'.
@@ -705,11 +705,11 @@ Patterns can be given as relative or absolute paths.
Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...]' to match character sets or ranges. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...]' to match character sets or ranges.
In addition, if a pattern starts with '!', then its matches are excluded from hidden files. To add multiple patterns, use ':' as a separator. Example: '.*:lost+found:*.bak' In addition, if a pattern starts with '!', then its matches are excluded from hidden files. To add multiple patterns, use ':' as a separator. Example: '.*:lost+found:*.bak'
history bool (default on) history bool (default true)
Save command history. Save command history.
icons bool (default off) icons bool (default false)
Show icons before each item in the list. Show icons before each item in the list.
@@ -722,19 +722,19 @@ This method assumes a POSIX shell syntax and so it can fail for non-POSIX 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.
ignorecase bool (default on) ignorecase bool (default true)
Ignore case in sorting and search patterns. Ignore case in sorting and search patterns.
ignoredia bool (default on) ignoredia bool (default true)
Ignore diacritics in sorting and search patterns. Ignore diacritics in sorting and search patterns.
incsearch bool (default off) incsearch bool (default false)
Jump to the first match after each keystroke during searching. Jump to the first match after each keystroke during searching.
incfilter bool (default off) incfilter bool (default false)
Apply filter pattern after each keystroke during filtering. Apply filter pattern after each keystroke during filtering.
@@ -752,11 +752,11 @@ Format string of the file time shown in the info column when it matches this yea
Format string of the file time shown in the info column when it doesn't match this year. Format string of the file time shown in the info column when it doesn't match this year.
mouse bool (default off) mouse bool (default false)
Send mouse events as input. Send mouse events as input.
number bool (default off) number bool (default false)
Show the position number for directory items at the left side of pane. Show the position number for directory items at the left side of pane.
When 'relativenumber' option is enabled, only the current line shows the absolute position and relative positions are shown for the rest. When 'relativenumber' option is enabled, only the current line shows the absolute position and relative positions are shown for the rest.
@@ -769,7 +769,7 @@ Note that directories are already updated automatically in many cases.
This option can be useful when there is an external process changing the displayed directory and you are not doing anything in lf. This option can be useful when there is an external process changing the displayed directory and you are not doing anything in lf.
Periodic checks are disabled when the value of this option is set to zero. Periodic checks are disabled when the value of this option is set to zero.
preview bool (default on) preview bool (default true)
Show previews of files and directories at the right most pane. Show previews of files and directories at the right most pane.
If the file has more lines than the preview pane, rest of the lines are not read. If the file has more lines than the preview pane, rest of the lines are not read.
@@ -798,12 +798,12 @@ List of ratios of pane widths.
Number of items in the list determines the number of panes in the ui. Number of items in the list determines the number of panes in the ui.
When 'preview' option is enabled, the right most number is used for the width of preview pane. When 'preview' option is enabled, the right most number is used for the width of preview pane.
relativenumber bool (default off) relativenumber bool (default false)
Show the position number relative to the current line. Show the position number relative to the current line.
When 'number' is enabled, current line shows the absolute position, otherwise nothing is shown. When 'number' is enabled, current line shows the absolute position, otherwise nothing is shown.
reverse bool (default off) reverse bool (default false)
Reverse the direction of sort. Reverse the direction of sort.
@@ -832,12 +832,12 @@ Command line flag used to pass shell commands.
List of shell options to pass to the shell executable. List of shell options to pass to the shell executable.
smartcase bool (default on) smartcase bool (default true)
Override 'ignorecase' option when the pattern contains an uppercase character. Override 'ignorecase' option when the pattern contains an uppercase character.
This option has no effect when 'ignorecase' is disabled. This option has no effect when 'ignorecase' is disabled.
smartdia bool (default off) smartdia bool (default false)
Override 'ignoredia' option when the pattern contains a character with diacritic. Override 'ignoredia' option when the pattern contains a character with diacritic.
This option has no effect when 'ignoredia' is disabled. This option has no effect when 'ignoredia' is disabled.
@@ -876,11 +876,11 @@ Truncate character shown at the end when the file name does not fit to the pane.
String shown after commands of shell-wait type. String shown after commands of shell-wait type.
wrapscan bool (default on) wrapscan bool (default true)
Searching can wrap around the file list. Searching can wrap around the file list.
wrapscroll bool (default off) wrapscroll bool (default false)
Scrolling can wrap around the file list. Scrolling can wrap around the file list.
@@ -1015,8 +1015,10 @@ There are four special commands ('set', 'map', 'cmap', and 'cmd') for configurat
Command 'set' is used to set an option which can be boolean, integer, or string: Command 'set' is used to set an option which can be boolean, integer, or string:
set hidden # boolean on set hidden # boolean enable
set nohidden # boolean off set hidden true # boolean enable
set nohidden # boolean disable
set hidden false # boolean disable
set hidden! # boolean toggle set hidden! # boolean toggle
set scrolloff 10 # integer value set scrolloff 10 # integer value
set sortby time # string value w/o quotes set sortby time # string value w/o quotes
+54 -52
View File
@@ -116,50 +116,50 @@ 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 on) anchorfind bool (default true)
autoquit bool (default off) autoquit bool (default false)
cleaner string (default '') cleaner string (default '')
cursoractivefmt string (default "\033[7m") cursoractivefmt string (default "\033[7m")
cursorparentfmt string (default "\033[7m") cursorparentfmt string (default "\033[7m")
cursorpreviewfmt string (default "\033[4m") cursorpreviewfmt string (default "\033[4m")
dircache bool (default on) dircache bool (default true)
dircounts bool (default off) dircounts bool (default false)
dirfirst bool (default on) dirfirst bool (default true)
dironly bool (default off) dironly bool (default false)
dirpreviews bool (default off) dirpreviews bool (default false)
drawbox bool (default off) drawbox bool (default false)
errorfmt string (default "\033[7;31;47m") errorfmt string (default "\033[7;31;47m")
filesep string (default "\n") filesep string (default "\n")
findlen int (default 1) findlen int (default 1)
globsearch bool (default off) globsearch bool (default false)
hidden bool (default off) hidden bool (default false)
hiddenfiles []string (default '.*') hiddenfiles []string (default '.*')
history bool (default on) history bool (default true)
icons bool (default off) icons bool (default false)
ifs string (default '') ifs string (default '')
ignorecase bool (default on) ignorecase bool (default true)
ignoredia bool (default on) ignoredia bool (default true)
incfilter bool (default off) incfilter bool (default false)
incsearch bool (default off) incsearch bool (default false)
info []string (default '') info []string (default '')
infotimefmtnew string (default 'Jan _2 15:04') infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006') infotimefmtold string (default 'Jan _2 2006')
mouse bool (default off) mouse bool (default false)
number bool (default off) number bool (default false)
period int (default 0) period int (default 0)
preview bool (default on) preview bool (default true)
previewer string (default '') previewer string (default '')
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")
ratios []int (default '1:2:3') ratios []int (default '1:2:3')
relativenumber bool (default off) relativenumber bool (default false)
reverse bool (default off) reverse bool (default false)
scrolloff int (default 0) scrolloff int (default 0)
selmode string (default 'all') selmode string (default 'all')
shell string (default 'sh' for Unix and 'cmd' for Windows) shell string (default 'sh' for Unix and 'cmd' for Windows)
shellflag string (default '-c' for Unix and '/c' for Windows) shellflag string (default '-c' for Unix and '/c' for Windows)
shellopts []string (default '') shellopts []string (default '')
smartcase bool (default on) smartcase bool (default true)
smartdia bool (default off) smartdia bool (default false)
sortby string (default 'natural') sortby string (default 'natural')
tabstop int (default 8) tabstop int (default 8)
tagfmt string (default "\033[31m") tagfmt string (default "\033[31m")
@@ -167,8 +167,8 @@ The following options can be used to customize the behavior of lf:
timefmt string (default 'Mon Jan _2 15:04:05 2006') timefmt string (default 'Mon Jan _2 15:04:05 2006')
truncatechar string (default '~') truncatechar string (default '~')
waitmsg string (default 'Press any key to continue') waitmsg string (default 'Press any key to continue')
wrapscan bool (default on) wrapscan bool (default true)
wrapscroll bool (default off) wrapscroll bool (default false)
user_{option} string (default none) user_{option} string (default none)
The following environment variables are exported for shell commands: The following environment variables are exported for shell commands:
@@ -637,12 +637,12 @@ List all key mappings.
This section shows information about options to customize the behavior. This section shows information about options to customize the behavior.
Character ':' is used as the separator for list options '[]int' and '[]string'. Character ':' is used as the separator for list options '[]int' and '[]string'.
anchorfind bool (default on) anchorfind bool (default true)
When this option is enabled, find command starts matching patterns from the When this option is enabled, find command starts matching patterns from the
beginning of file names, otherwise, it can match at an arbitrary position. beginning of file names, otherwise, it can match at an arbitrary position.
autoquit bool (default off) autoquit bool (default false)
Automatically quit server when there are no clients left connected. Automatically quit server when there are no clients left connected.
@@ -676,11 +676,11 @@ If the format string contains the characters '%s', it is interpreted as a format
string for 'fmt.Sprintf'. Such a string should end with the terminal reset string for 'fmt.Sprintf'. Such a string should end with the terminal reset
sequence. For example, "\033[4m%s\033[0m" has the same effect as "\033[4m". sequence. For example, "\033[4m%s\033[0m" has the same effect as "\033[4m".
dircache bool (default on) dircache bool (default true)
Cache directory contents. Cache directory contents.
dircounts bool (default off) dircounts bool (default false)
When this option is enabled, directory sizes show the number of items inside When this option is enabled, directory sizes show the number of items inside
instead of the total size of the directory, which needs to be calculated for instead of the total size of the directory, which needs to be calculated for
@@ -691,20 +691,20 @@ disabled by default for performance reasons. This option only has an effect when
999 items are counted per directory at most, and bigger directories are shown as 999 items are counted per directory at most, and bigger directories are shown as
'999+'. '999+'.
dirfirst bool (default on) dirfirst bool (default true)
Show directories first above regular files. Show directories first above regular files.
dironly bool (default off) dironly bool (default false)
Show only directories. Show only directories.
dirpreviews bool (default off) dirpreviews bool (default false)
If enabled, directories will also be passed to the previewer script. This allows If enabled, directories will also be passed to the previewer script. This allows
custom previews for directories. custom previews for directories.
drawbox bool (default off) drawbox bool (default false)
Draw boxes around panes with box drawing characters. Draw boxes around panes with box drawing characters.
@@ -725,14 +725,14 @@ File separator used in environment variables 'fs' and 'fx'.
Number of characters prompted for the find command. When this value is set to 0, Number of characters prompted for the find command. When this value is set to 0,
find command prompts until there is only a single match left. find command prompts until there is only a single match left.
globsearch bool (default off) globsearch bool (default false)
When this option is enabled, search command patterns are considered as globs, When this option is enabled, search command patterns are considered as globs,
otherwise they are literals. With globbing, '*' matches any sequence, '?' otherwise they are literals. With globbing, '*' matches any sequence, '?'
matches any character, and '[...]' or '[^...]' matches character sets or ranges. matches any character, and '[...]' or '[^...]' matches character sets or ranges.
Otherwise, these characters are interpreted as they are. Otherwise, these characters are interpreted as they are.
hidden bool (default off) hidden bool (default false)
Show hidden files. On Unix systems, hidden files are determined by the value Show hidden files. On Unix systems, hidden files are determined by the value
of 'hiddenfiles'. On Windows, only files with hidden attributes are considered of 'hiddenfiles'. On Windows, only files with hidden attributes are considered
@@ -747,11 +747,11 @@ sets or ranges. In addition, if a pattern starts with '!', then its matches are
excluded from hidden files. To add multiple patterns, use ':' as a separator. excluded from hidden files. To add multiple patterns, use ':' as a separator.
Example: '.*:lost+found:*.bak' Example: '.*:lost+found:*.bak'
history bool (default on) history bool (default true)
Save command history. Save command history.
icons bool (default off) icons bool (default false)
Show icons before each item in the list. Show icons before each item in the list.
@@ -764,19 +764,19 @@ a POSIX shell syntax and so it can fail for non-POSIX shells. This option has
no effect when the value is left empty. This option does not have any effect on no effect when the value is left empty. This option does not have any effect on
Windows. Windows.
ignorecase bool (default on) ignorecase bool (default true)
Ignore case in sorting and search patterns. Ignore case in sorting and search patterns.
ignoredia bool (default on) ignoredia bool (default true)
Ignore diacritics in sorting and search patterns. Ignore diacritics in sorting and search patterns.
incsearch bool (default off) incsearch bool (default false)
Jump to the first match after each keystroke during searching. Jump to the first match after each keystroke during searching.
incfilter bool (default off) incfilter bool (default false)
Apply filter pattern after each keystroke during filtering. Apply filter pattern after each keystroke during filtering.
@@ -797,11 +797,11 @@ year.
Format string of the file time shown in the info column when it doesn't match Format string of the file time shown in the info column when it doesn't match
this year. this year.
mouse bool (default off) mouse bool (default false)
Send mouse events as input. Send mouse events as input.
number bool (default off) number bool (default false)
Show the position number for directory items at the left side of pane. When Show the position number for directory items at the left side of pane. When
'relativenumber' option is enabled, only the current line shows the absolute 'relativenumber' option is enabled, only the current line shows the absolute
@@ -816,7 +816,7 @@ external process changing the displayed directory and you are not doing anything
in lf. Periodic checks are disabled when the value of this option is set to in lf. Periodic checks are disabled when the value of this option is set to
zero. zero.
preview bool (default on) preview bool (default true)
Show previews of files and directories at the right most pane. If the file Show previews of files and directories at the right most pane. If the file
has more lines than the preview pane, rest of the lines are not read. Files has more lines than the preview pane, rest of the lines are not read. Files
@@ -852,12 +852,12 @@ List of ratios of pane widths. Number of items in the list determines the number
of panes in the ui. When 'preview' option is enabled, the right most number is of panes in the ui. When 'preview' option is enabled, the right most number is
used for the width of preview pane. used for the width of preview pane.
relativenumber bool (default off) relativenumber bool (default false)
Show the position number relative to the current line. When 'number' is enabled, Show the position number relative to the current line. When 'number' is enabled,
current line shows the absolute position, otherwise nothing is shown. current line shows the absolute position, otherwise nothing is shown.
reverse bool (default off) reverse bool (default false)
Reverse the direction of sort. Reverse the direction of sort.
@@ -888,12 +888,12 @@ Command line flag used to pass shell commands.
List of shell options to pass to the shell executable. List of shell options to pass to the shell executable.
smartcase bool (default on) smartcase bool (default true)
Override 'ignorecase' option when the pattern contains an uppercase character. Override 'ignorecase' option when the pattern contains an uppercase character.
This option has no effect when 'ignorecase' is disabled. This option has no effect when 'ignorecase' is disabled.
smartdia bool (default off) smartdia bool (default false)
Override 'ignoredia' option when the pattern contains a character with Override 'ignoredia' option when the pattern contains a character with
diacritic. This option has no effect when 'ignoredia' is disabled. diacritic. This option has no effect when 'ignoredia' is disabled.
@@ -934,11 +934,11 @@ Truncate character shown at the end when the file name does not fit to the pane.
String shown after commands of shell-wait type. String shown after commands of shell-wait type.
wrapscan bool (default on) wrapscan bool (default true)
Searching can wrap around the file list. Searching can wrap around the file list.
wrapscroll bool (default off) wrapscroll bool (default false)
Scrolling can wrap around the file list. Scrolling can wrap around the file list.
@@ -1084,8 +1084,10 @@ configuration.
Command 'set' is used to set an option which can be boolean, integer, or string: Command 'set' is used to set an option which can be boolean, integer, or string:
set hidden # boolean on set hidden # boolean enable
set nohidden # boolean off set hidden true # boolean enable
set nohidden # boolean disable
set hidden false # boolean disable
set hidden! # boolean toggle set hidden! # boolean toggle
set scrolloff 10 # integer value set scrolloff 10 # integer value
set sortby time # string value w/o quotes set sortby time # string value w/o quotes
+54 -52
View File
@@ -132,50 +132,50 @@ 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:
.PP .PP
.EX .EX
anchorfind bool (default on) anchorfind bool (default true)
autoquit bool (default off) autoquit bool (default false)
cleaner string (default '') cleaner string (default '')
cursoractivefmt string (default "\e033[7m") cursoractivefmt string (default "\e033[7m")
cursorparentfmt string (default "\e033[7m") cursorparentfmt string (default "\e033[7m")
cursorpreviewfmt string (default "\e033[4m") cursorpreviewfmt string (default "\e033[4m")
dircache bool (default on) dircache bool (default true)
dircounts bool (default off) dircounts bool (default false)
dirfirst bool (default on) dirfirst bool (default true)
dironly bool (default off) dironly bool (default false)
dirpreviews bool (default off) dirpreviews bool (default false)
drawbox bool (default off) drawbox bool (default false)
errorfmt string (default "\e033[7;31;47m") errorfmt string (default "\e033[7;31;47m")
filesep string (default "\en") filesep string (default "\en")
findlen int (default 1) findlen int (default 1)
globsearch bool (default off) globsearch bool (default false)
hidden bool (default off) hidden bool (default false)
hiddenfiles []string (default '.*') hiddenfiles []string (default '.*')
history bool (default on) history bool (default true)
icons bool (default off) icons bool (default false)
ifs string (default '') ifs string (default '')
ignorecase bool (default on) ignorecase bool (default true)
ignoredia bool (default on) ignoredia bool (default true)
incfilter bool (default off) incfilter bool (default false)
incsearch bool (default off) incsearch bool (default false)
info []string (default '') info []string (default '')
infotimefmtnew string (default 'Jan _2 15:04') infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006') infotimefmtold string (default 'Jan _2 2006')
mouse bool (default off) mouse bool (default false)
number bool (default off) number bool (default false)
period int (default 0) period int (default 0)
preview bool (default on) preview bool (default true)
previewer string (default '') previewer string (default '')
promptfmt string (default "\e033[32;1m%u@%h\e033[0m:\e033[34;1m%d\e033[0m\e033[1m%f\e033[0m") promptfmt string (default "\e033[32;1m%u@%h\e033[0m:\e033[34;1m%d\e033[0m\e033[1m%f\e033[0m")
ratios []int (default '1:2:3') ratios []int (default '1:2:3')
relativenumber bool (default off) relativenumber bool (default false)
reverse bool (default off) reverse bool (default false)
scrolloff int (default 0) scrolloff int (default 0)
selmode string (default 'all') selmode string (default 'all')
shell string (default 'sh' for Unix and 'cmd' for Windows) shell string (default 'sh' for Unix and 'cmd' for Windows)
shellflag string (default '-c' for Unix and '/c' for Windows) shellflag string (default '-c' for Unix and '/c' for Windows)
shellopts []string (default '') shellopts []string (default '')
smartcase bool (default on) smartcase bool (default true)
smartdia bool (default off) smartdia bool (default false)
sortby string (default 'natural') sortby string (default 'natural')
tabstop int (default 8) tabstop int (default 8)
tagfmt string (default "\e033[31m") tagfmt string (default "\e033[31m")
@@ -183,8 +183,8 @@ The following options can be used to customize the behavior of lf:
timefmt string (default 'Mon Jan _2 15:04:05 2006') timefmt string (default 'Mon Jan _2 15:04:05 2006')
truncatechar string (default '~') truncatechar string (default '~')
waitmsg string (default 'Press any key to continue') waitmsg string (default 'Press any key to continue')
wrapscan bool (default on) wrapscan bool (default true)
wrapscroll bool (default off) wrapscroll bool (default false)
user_{option} string (default none) user_{option} string (default none)
.EE .EE
.PP .PP
@@ -751,13 +751,13 @@ List all key mappings.
This section shows information about options to customize the behavior. Character ':' is used as the separator for list options '[]int' and '[]string'. This section shows information about options to customize the behavior. Character ':' is used as the separator for list options '[]int' and '[]string'.
.PP .PP
.EX .EX
anchorfind bool (default on) anchorfind bool (default true)
.EE .EE
.PP .PP
When this option is enabled, find command starts matching patterns from the beginning of file names, otherwise, it can match at an arbitrary position. When this option is enabled, find command starts matching patterns from the beginning of file names, otherwise, it can match at an arbitrary position.
.PP .PP
.EX .EX
autoquit bool (default off) autoquit bool (default false)
.EE .EE
.PP .PP
Automatically quit server when there are no clients left connected. Automatically quit server when there are no clients left connected.
@@ -783,37 +783,37 @@ Some other possibilities to consider for the preview or parent cursors: an empty
If the format string contains the characters `%s`, it is interpreted as a format string for `fmt.Sprintf`. Such a string should end with the terminal reset sequence. For example, "\e033[4m%s\e033[0m" has the same effect as "\e033[4m". If the format string contains the characters `%s`, it is interpreted as a format string for `fmt.Sprintf`. Such a string should end with the terminal reset sequence. For example, "\e033[4m%s\e033[0m" has the same effect as "\e033[4m".
.PP .PP
.EX .EX
dircache bool (default on) dircache bool (default true)
.EE .EE
.PP .PP
Cache directory contents. Cache directory contents.
.PP .PP
.EX .EX
dircounts bool (default off) dircounts bool (default false)
.EE .EE
.PP .PP
When this option is enabled, directory sizes show the number of items inside instead of the total size of the directory, which needs to be calculated for each directory using 'calcdirsize'. 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. 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+'. When this option is enabled, directory sizes show the number of items inside instead of the total size of the directory, which needs to be calculated for each directory using 'calcdirsize'. 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. 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+'.
.PP .PP
.EX .EX
dirfirst bool (default on) dirfirst bool (default true)
.EE .EE
.PP .PP
Show directories first above regular files. Show directories first above regular files.
.PP .PP
.EX .EX
dironly bool (default off) dironly bool (default false)
.EE .EE
.PP .PP
Show only directories. Show only directories.
.PP .PP
.EX .EX
dirpreviews bool (default off) dirpreviews bool (default false)
.EE .EE
.PP .PP
If enabled, directories will also be passed to the previewer script. This allows custom previews for directories. If enabled, directories will also be passed to the previewer script. This allows custom previews for directories.
.PP .PP
.EX .EX
drawbox bool (default off) drawbox bool (default false)
.EE .EE
.PP .PP
Draw boxes around panes with box drawing characters. Draw boxes around panes with box drawing characters.
@@ -839,13 +839,13 @@ File separator used in environment variables 'fs' and 'fx'.
Number of characters prompted for the find command. When this value is set to 0, find command prompts until there is only a single match left. Number of characters prompted for the find command. When this value is set to 0, find command prompts until there is only a single match left.
.PP .PP
.EX .EX
globsearch bool (default off) globsearch bool (default false)
.EE .EE
.PP .PP
When this option is enabled, search command patterns are considered as globs, otherwise they are literals. With globbing, '*' matches any sequence, '?' matches any character, and '[...]' or '[^...]' matches character sets or ranges. Otherwise, these characters are interpreted as they are. When this option is enabled, search command patterns are considered as globs, otherwise they are literals. With globbing, '*' matches any sequence, '?' matches any character, and '[...]' or '[^...]' matches character sets or ranges. Otherwise, these characters are interpreted as they are.
.PP .PP
.EX .EX
hidden bool (default off) hidden bool (default false)
.EE .EE
.PP .PP
Show hidden files. On Unix systems, hidden files are determined by the value of 'hiddenfiles'. On Windows, only files with hidden attributes are considered hidden files. Show hidden files. On Unix systems, hidden files are determined by the value of 'hiddenfiles'. On Windows, only files with hidden attributes are considered hidden files.
@@ -857,13 +857,13 @@ Show hidden files. On Unix systems, hidden files are determined by the value of
List of hidden file glob patterns. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...]' to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from hidden files. To add multiple patterns, use ':' as a separator. Example: '.*:lost+found:*.bak' List of hidden file glob patterns. Patterns can be given as relative or absolute paths. Globbing supports the usual special characters, '*' to match any sequence, '?' to match any character, and '[...]' or '[^...]' to match character sets or ranges. In addition, if a pattern starts with '!', then its matches are excluded from hidden files. To add multiple patterns, use ':' as a separator. Example: '.*:lost+found:*.bak'
.PP .PP
.EX .EX
history bool (default on) history bool (default true)
.EE .EE
.PP .PP
Save command history. Save command history.
.PP .PP
.EX .EX
icons bool (default off) icons bool (default false)
.EE .EE
.PP .PP
Show icons before each item in the list. Show icons before each item in the list.
@@ -875,25 +875,25 @@ Show icons before each item in the list.
Sets 'IFS' variable in shell commands. It works by adding the assignment to the beginning of the command string as "IFS='...'; ...". The reason is that 'IFS' variable is not inherited by the shell for security reasons. This method assumes a POSIX shell syntax and so it can fail for non-POSIX shells. This option has no effect when the value is left empty. This option does not have any effect on Windows. Sets 'IFS' variable in shell commands. It works by adding the assignment to the beginning of the command string as "IFS='...'; ...". The reason is that 'IFS' variable is not inherited by the shell for security reasons. This method assumes a POSIX shell syntax and so it can fail for non-POSIX shells. This option has no effect when the value is left empty. This option does not have any effect on Windows.
.PP .PP
.EX .EX
ignorecase bool (default on) ignorecase bool (default true)
.EE .EE
.PP .PP
Ignore case in sorting and search patterns. Ignore case in sorting and search patterns.
.PP .PP
.EX .EX
ignoredia bool (default on) ignoredia bool (default true)
.EE .EE
.PP .PP
Ignore diacritics in sorting and search patterns. Ignore diacritics in sorting and search patterns.
.PP .PP
.EX .EX
incsearch bool (default off) incsearch bool (default false)
.EE .EE
.PP .PP
Jump to the first match after each keystroke during searching. Jump to the first match after each keystroke during searching.
.PP .PP
.EX .EX
incfilter bool (default off) incfilter bool (default false)
.EE .EE
.PP .PP
Apply filter pattern after each keystroke during filtering. Apply filter pattern after each keystroke during filtering.
@@ -917,13 +917,13 @@ Format string of the file time shown in the info column when it matches this yea
Format string of the file time shown in the info column when it doesn't match this year. Format string of the file time shown in the info column when it doesn't match this year.
.PP .PP
.EX .EX
mouse bool (default off) mouse bool (default false)
.EE .EE
.PP .PP
Send mouse events as input. Send mouse events as input.
.PP .PP
.EX .EX
number bool (default off) number bool (default false)
.EE .EE
.PP .PP
Show the position number for directory items at the left side of pane. When 'relativenumber' option is enabled, only the current line shows the absolute position and relative positions are shown for the rest. Show the position number for directory items at the left side of pane. When 'relativenumber' option is enabled, only the current line shows the absolute position and relative positions are shown for the rest.
@@ -935,7 +935,7 @@ Show the position number for directory items at the left side of pane. When 'rel
Set the interval in seconds for periodic checks of directory updates. This works by periodically calling the 'load' command. Note that directories are already updated automatically in many cases. This option can be useful when there is an external process changing the displayed directory and you are not doing anything in lf. Periodic checks are disabled when the value of this option is set to zero. Set the interval in seconds for periodic checks of directory updates. This works by periodically calling the 'load' command. Note that directories are already updated automatically in many cases. This option can be useful when there is an external process changing the displayed directory and you are not doing anything in lf. Periodic checks are disabled when the value of this option is set to zero.
.PP .PP
.EX .EX
preview bool (default on) preview bool (default true)
.EE .EE
.PP .PP
Show previews of files and directories at the right most pane. If the file has more lines than the preview pane, rest of the lines are not read. Files containing the null character (U+0000) in the read portion are considered binary files and displayed as 'binary'. Show previews of files and directories at the right most pane. If the file has more lines than the preview pane, rest of the lines are not read. Files containing the null character (U+0000) in the read portion are considered binary files and displayed as 'binary'.
@@ -959,13 +959,13 @@ Format string of the prompt shown in the top line. Special expansions are provid
List of ratios of pane widths. Number of items in the list determines the number of panes in the ui. When 'preview' option is enabled, the right most number is used for the width of preview pane. List of ratios of pane widths. Number of items in the list determines the number of panes in the ui. When 'preview' option is enabled, the right most number is used for the width of preview pane.
.PP .PP
.EX .EX
relativenumber bool (default off) relativenumber bool (default false)
.EE .EE
.PP .PP
Show the position number relative to the current line. When 'number' is enabled, current line shows the absolute position, otherwise nothing is shown. Show the position number relative to the current line. When 'number' is enabled, current line shows the absolute position, otherwise nothing is shown.
.PP .PP
.EX .EX
reverse bool (default off) reverse bool (default false)
.EE .EE
.PP .PP
Reverse the direction of sort. Reverse the direction of sort.
@@ -1001,13 +1001,13 @@ Command line flag used to pass shell commands.
List of shell options to pass to the shell executable. List of shell options to pass to the shell executable.
.PP .PP
.EX .EX
smartcase bool (default on) smartcase bool (default true)
.EE .EE
.PP .PP
Override 'ignorecase' option when the pattern contains an uppercase character. This option has no effect when 'ignorecase' is disabled. Override 'ignorecase' option when the pattern contains an uppercase character. This option has no effect when 'ignorecase' is disabled.
.PP .PP
.EX .EX
smartdia bool (default off) smartdia bool (default false)
.EE .EE
.PP .PP
Override 'ignoredia' option when the pattern contains a character with diacritic. This option has no effect when 'ignoredia' is disabled. Override 'ignoredia' option when the pattern contains a character with diacritic. This option has no effect when 'ignoredia' is disabled.
@@ -1057,13 +1057,13 @@ Truncate character shown at the end when the file name does not fit to the pane.
String shown after commands of shell-wait type. String shown after commands of shell-wait type.
.PP .PP
.EX .EX
wrapscan bool (default on) wrapscan bool (default true)
.EE .EE
.PP .PP
Searching can wrap around the file list. Searching can wrap around the file list.
.PP .PP
.EX .EX
wrapscroll bool (default off) wrapscroll bool (default false)
.EE .EE
.PP .PP
Scrolling can wrap around the file list. Scrolling can wrap around the file list.
@@ -1234,8 +1234,10 @@ There are four special commands ('set', 'map', 'cmap', and 'cmd') for configurat
Command 'set' is used to set an option which can be boolean, integer, or string: Command 'set' is used to set an option which can be boolean, integer, or string:
.PP .PP
.EX .EX
set hidden # boolean on set hidden # boolean enable
set nohidden # boolean off set hidden true # boolean enable
set nohidden # boolean disable
set hidden false # boolean disable
set hidden! # boolean toggle set hidden! # boolean toggle
set scrolloff 10 # integer value set scrolloff 10 # integer value
set sortby time # string value w/o quotes set sortby time # string value w/o quotes