docs: fix typos and grammar in documentation (#2604)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-05-30 03:21:55 +02:00
1 parent d6eebeb8ad
commit c53aacf373
3 files changed
+25 -25

No files matched your search

+7 -7
View File
@@ -66,7 +66,7 @@ SHELL INTEGRATION
-print-last-dir
Print the last directory to stdout when lf exits. This can be used
to let lf change your shells working directory. See
to let lf change your shell's working directory. See
CHANGING DIRECTORY for more details.
-last-dir-path path
@@ -1160,7 +1160,7 @@ preserve ([]string) (default mode)
List of attributes that are preserved when copying files. Currently
supported attributes are mode (i.e. access mode) and timestamps (i.e.
modification time and access time). Note that preserving other
attributes like ownership of change/birth timestamp is desirable, but
attributes like ownership or change/birth timestamps is desirable, but
not portably supported in Go.
preview (bool) (default true)
@@ -2235,7 +2235,7 @@ previews to be preloaded in advance. If enabled, the preview script will
be run on files in advance as the user navigates through them. In this
case, if the exit code of the preview script is zero, then the output
will be cached in memory and displayed by lf (useful for text or sixel
previews). Otherwise, it will fallback to calling the preview script
previews). Otherwise, it will fall back to calling the preview script
again when the file is actually selected (useful for previews managed by
an external program).
@@ -2281,8 +2281,8 @@ You can add an extra call to make it run on startup as well:
cmd on-cd &{{ ... }}
on-cd
Note that all shell commands are possible but % and & are usually more
appropriate as $ and ! causes flickers and pauses respectively.
Note that all shell command types can be used, but % and & are usually
more appropriate, as $ and ! cause flickering and pauses respectively.
There is also a pre-cd command, that works like on-cd, but is run before
the directory is actually changed. Another related command is on-load
@@ -2387,7 +2387,7 @@ configured using the promptfmt option which can include hardcoded colors
as ANSI escapes. See the default value of this option to have an idea
about how to color this line.
It is worth noting that lf uses as many colors advertised by your
It is worth noting that lf uses as many colors as advertised by your
terminal's entry in terminfo or infocmp databases on your system. If an
entry is not present, it falls back to an internal database. If your
terminal supports 24-bit colors but either does not have a database
@@ -2500,7 +2500,7 @@ Icons are configured using LF_ICONS environment variable or an icons
file (refer to the CONFIGURATION section). The variable uses the same
syntax as LS_COLORS/LF_COLORS. Instead of colors, you should use single
characters or symbols as values. The ln entry supports the special value
target, which will use the link target to select a icon. Filename rules
target, which will use the link target to select an icon. Filename 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 arrays with a # character to