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
@@ -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:
.PP
.EX
anchorfind bool (default on)
autoquit bool (default off)
anchorfind bool (default true)
autoquit bool (default false)
cleaner string (default '')
cursoractivefmt string (default "\e033[7m")
cursorparentfmt string (default "\e033[7m")
cursorpreviewfmt string (default "\e033[4m")
dircache bool (default on)
dircounts bool (default off)
dirfirst bool (default on)
dironly bool (default off)
dirpreviews bool (default off)
drawbox bool (default off)
dircache bool (default true)
dircounts bool (default false)
dirfirst bool (default true)
dironly bool (default false)
dirpreviews bool (default false)
drawbox bool (default false)
errorfmt string (default "\e033[7;31;47m")
filesep string (default "\en")
findlen int (default 1)
globsearch bool (default off)
hidden bool (default off)
globsearch bool (default false)
hidden bool (default false)
hiddenfiles []string (default '.*')
history bool (default on)
icons bool (default off)
history bool (default true)
icons bool (default false)
ifs string (default '')
ignorecase bool (default on)
ignoredia bool (default on)
incfilter bool (default off)
incsearch bool (default off)
ignorecase bool (default true)
ignoredia bool (default true)
incfilter bool (default false)
incsearch bool (default false)
info []string (default '')
infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006')
mouse bool (default off)
number bool (default off)
mouse bool (default false)
number bool (default false)
period int (default 0)
preview bool (default on)
preview bool (default true)
previewer string (default '')
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')
relativenumber bool (default off)
reverse bool (default off)
relativenumber bool (default false)
reverse bool (default false)
scrolloff int (default 0)
selmode string (default 'all')
shell string (default 'sh' for Unix and 'cmd' for Windows)
shellflag string (default '-c' for Unix and '/c' for Windows)
shellopts []string (default '')
smartcase bool (default on)
smartdia bool (default off)
smartcase bool (default true)
smartdia bool (default false)
sortby string (default 'natural')
tabstop int (default 8)
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')
truncatechar string (default '~')
waitmsg string (default 'Press any key to continue')
wrapscan bool (default on)
wrapscroll bool (default off)
wrapscan bool (default true)
wrapscroll bool (default false)
user_{option} string (default none)
.EE
.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'.
.PP
.EX
anchorfind bool (default on)
anchorfind bool (default true)
.EE
.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.
.PP
.EX
autoquit bool (default off)
autoquit bool (default false)
.EE
.PP
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".
.PP
.EX
dircache bool (default on)
dircache bool (default true)
.EE
.PP
Cache directory contents.
.PP
.EX
dircounts bool (default off)
dircounts bool (default false)
.EE
.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+'.
.PP
.EX
dirfirst bool (default on)
dirfirst bool (default true)
.EE
.PP
Show directories first above regular files.
.PP
.EX
dironly bool (default off)
dironly bool (default false)
.EE
.PP
Show only directories.
.PP
.EX
dirpreviews bool (default off)
dirpreviews bool (default false)
.EE
.PP
If enabled, directories will also be passed to the previewer script. This allows custom previews for directories.
.PP
.EX
drawbox bool (default off)
drawbox bool (default false)
.EE
.PP
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.
.PP
.EX
globsearch bool (default off)
globsearch bool (default false)
.EE
.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.
.PP
.EX
hidden bool (default off)
hidden bool (default false)
.EE
.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.
@@ -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'
.PP
.EX
history bool (default on)
history bool (default true)
.EE
.PP
Save command history.
.PP
.EX
icons bool (default off)
icons bool (default false)
.EE
.PP
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.
.PP
.EX
ignorecase bool (default on)
ignorecase bool (default true)
.EE
.PP
Ignore case in sorting and search patterns.
.PP
.EX
ignoredia bool (default on)
ignoredia bool (default true)
.EE
.PP
Ignore diacritics in sorting and search patterns.
.PP
.EX
incsearch bool (default off)
incsearch bool (default false)
.EE
.PP
Jump to the first match after each keystroke during searching.
.PP
.EX
incfilter bool (default off)
incfilter bool (default false)
.EE
.PP
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.
.PP
.EX
mouse bool (default off)
mouse bool (default false)
.EE
.PP
Send mouse events as input.
.PP
.EX
number bool (default off)
number bool (default false)
.EE
.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.
@@ -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.
.PP
.EX
preview bool (default on)
preview bool (default true)
.EE
.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'.
@@ -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.
.PP
.EX
relativenumber bool (default off)
relativenumber bool (default false)
.EE
.PP
Show the position number relative to the current line. When 'number' is enabled, current line shows the absolute position, otherwise nothing is shown.
.PP
.EX
reverse bool (default off)
reverse bool (default false)
.EE
.PP
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.
.PP
.EX
smartcase bool (default on)
smartcase bool (default true)
.EE
.PP
Override 'ignorecase' option when the pattern contains an uppercase character. This option has no effect when 'ignorecase' is disabled.
.PP
.EX
smartdia bool (default off)
smartdia bool (default false)
.EE
.PP
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.
.PP
.EX
wrapscan bool (default on)
wrapscan bool (default true)
.EE
.PP
Searching can wrap around the file list.
.PP
.EX
wrapscroll bool (default off)
wrapscroll bool (default false)
.EE
.PP
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:
.PP
.EX
set hidden # boolean on
set nohidden # boolean off
set hidden # boolean enable
set hidden true # boolean enable
set nohidden # boolean disable
set hidden false # boolean disable
set hidden! # boolean toggle
set scrolloff 10 # integer value
set sortby time # string value w/o quotes