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

+12 -12
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2026\-05\-15" "r42" "DOCUMENTATION"
.TH "LF" "1" "2026\-05\-30" "r42" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -67,7 +67,7 @@ This only affects which \f[CR]lfrc\f[R] is read at startup.
.TP
\f[B]\-print\-last\-dir\f[R]
Print the last directory to stdout when lf exits.
This can be used to let lf change your shells working directory.
This can be used to let lf change your shell\(aqs working directory.
See \f[CR]CHANGING DIRECTORY\f[R] for more details.
.TP
\f[B]\-last\-dir\-path\f[R] \f[I]path\f[R]
@@ -1025,8 +1025,8 @@ List of attributes that are preserved when copying files.
Currently supported attributes are \f[CR]mode\f[R] (i.e.
access mode) and \f[CR]timestamps\f[R] (i.e.
modification time and access time).
Note that preserving other attributes like ownership of change/birth
timestamp is desirable, but not portably supported in Go.
Note that preserving other attributes like ownership or change/birth
timestamps is desirable, but not portably supported in Go.
.SS preview (bool) (default true)
Show previews of files and directories at the rightmost pane.
If the file has more lines than the preview pane, the rest of the lines
@@ -2186,9 +2186,9 @@ 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 again when the
file is actually selected (useful for previews managed by an external
program).
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).
.SH CHANGING DIRECTORY
lf changes the working directory of the process to the current directory
so that shell commands always work in the displayed directory.
@@ -2239,9 +2239,9 @@ cmd on\-cd &{{ ... }}
on\-cd
.EE
.PP
Note that all shell commands are possible but \f[CR]%\f[R] and
\f[CR]&\f[R] are usually more appropriate as \f[CR]$\f[R] and
\f[CR]!\f[R] causes flickers and pauses respectively.
Note that all shell command types can be used, but \f[CR]%\f[R] and
\f[CR]&\f[R] are usually more appropriate, as \f[CR]$\f[R] and
\f[CR]!\f[R] cause flickering and pauses respectively.
.PP
There is also a \f[CR]pre\-cd\f[R] command, that works like
\f[CR]on\-cd\f[R], but is run before the directory is actually changed.
@@ -2362,7 +2362,7 @@ escapes.
See the default value of this option to have an idea about how to color
this line.
.PP
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\(aqs 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
@@ -2524,7 +2524,7 @@ The variable uses the same syntax as \f[CR]LS_COLORS/LF_COLORS\f[R].
Instead of colors, you should use single characters or symbols as
values.
The \f[CR]ln\f[R] entry supports the special value \f[CR]target\f[R],
which will use the link target to select a icon.
which will use the link target to select an icon.
Filename rules will still apply based on the link\(aqs name \-\- this
mirrors GNU\(aqs \f[CR]ls\f[R] and \f[CR]dircolors\f[R] behavior.
The icons file (refer to the \c