Update documentation (#1755)

This commit is contained in:
Joe Lim authored and GitHub committed 2024-06-22 16:38:52 +10:00
1 parent e350e0b735
commit adaf464fea
2 files changed
+33 -11

No files matched your search

+13 -6
View File
@@ -148,7 +148,7 @@ The following options can be used to customize the behavior of lf:
globfilter bool (default false)
globsearch bool (default false)
hidden bool (default false)
hiddenfiles []string (default '.*')
hiddenfiles []string (default '.*' for Unix and '' for Windows)
hidecursorinactive bool (default false)
history bool (default true)
icons bool (default false)
@@ -192,6 +192,7 @@ The following options can be used to customize the behavior of lf:
truncatechar string (default '~')
truncatepct int (default 100)
waitmsg string (default 'Press any key to continue')
watch bool (default false)
wrapscan bool (default true)
wrapscroll bool (default false)
user_{option} string (default none)
@@ -814,10 +815,10 @@ sets or ranges. Otherwise, these characters are interpreted as they are.
hidden (bool) (default false)
Show hidden files. On Unix systems, hidden files are determined by the
value of hiddenfiles. On Windows, only files with hidden attributes are
value of hiddenfiles. On Windows, files with hidden attributes are also
considered hidden files.
hiddenfiles ([]string) (default .*)
hiddenfiles ([]string) (default .* for Unix and `` for Windows)
List of hidden file glob patterns. Patterns can be given as relative or
absolute paths. Globbing supports the usual special characters, * to
@@ -1113,6 +1114,12 @@ waitmsg (string) (default Press any key to continue)
String shown after commands of shell-wait type.
watch (bool) (default false)
Watch the filesystem for changes using fsnotify to automatically refresh
file information. FUSE is currently not supported due to limitations in
fsnotify.
wrapscan (bool) (default true)
Searching can wrap around the file list.
@@ -2056,9 +2063,9 @@ single characters as values of entries. The ln entry supports the
special value target, which will use the link target to select a icon.
File name rules will still apply based on the link's name -- this
mirrors GNU's ls and dircolors behavior. The icons file (refer to the
CONFIGURATION section) should consist of whitespace-separated pairs with
a # character to start comments until the end of the line. Each line
should contain 1-3 columns, first column is filetype or filename
CONFIGURATION section) should consist of whitespace-separated arrays
with a # character to start comments until the end of the line. Each
line should contain 1-3 columns, first column is filetype or filename
pattern, second column is the icon, third column is an optional icon
color. If there is only one column, means to disable rule for this
filetype or pattern. Do not forget to add set icons true to your lfrc to