From c53aacf3731a1307783fd6da8561eda1fe1c0c7e Mon Sep 17 00:00:00 2001 From: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com> Date: Sat, 30 May 2026 03:21:55 +0200 Subject: [PATCH] docs: fix typos and grammar in documentation (#2604) --- doc.md | 12 ++++++------ doc.txt | 14 +++++++------- lf.1 | 24 ++++++++++++------------ 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/doc.md b/doc.md index cf64442d..aed366bb 100644 --- a/doc.md +++ b/doc.md @@ -68,7 +68,7 @@ Use the config file at *path* instead of the normal search locations. This only **-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 `CHANGING DIRECTORY` for more details. +Print the last directory to stdout when lf exits. This can be used to let lf change your shell's working directory. See `CHANGING DIRECTORY` for more details. **-last-dir-path** *path* @@ -1071,7 +1071,7 @@ Allow previews to be generated in advance using the `previewer` script as the us 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 not portably supported in Go. +Note that preserving other attributes like ownership or change/birth timestamps is desirable, but not portably supported in Go. ## preview (bool) (default true) @@ -1997,7 +1997,7 @@ Since the preview script is called for each file selection change, it may not ge To deal with this, the `preload` option can be set to enable file 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 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). # CHANGING DIRECTORY @@ -2036,7 +2036,7 @@ 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` which gets executed when loading a directory. @@ -2127,7 +2127,7 @@ Lastly, you may also want to configure the colors of the prompt line to match th Colors of the prompt line can be 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 terminal's entry in terminfo or infocmp databases on your system. +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 entry or does not advertise all capabilities, you can enable support by setting the `$COLORTERM` variable to `truecolor` or ensuring `$TERM` is set to a value that ends with `-truecolor`. @@ -2225,7 +2225,7 @@ https://en.wikipedia.org/wiki/ANSI_escape_code Icons are configured using `LF_ICONS` environment variable or an icons file (refer to the [CONFIGURATION section](https://github.com/gokcehan/lf/blob/master/doc.md#configuration)). 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 will still apply based on the link's name -- this mirrors GNU's `ls` and `dircolors` behavior. +The `ln` entry supports the special value `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](https://github.com/gokcehan/lf/blob/master/doc.md#configuration)) 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: a file type or file name pattern, the icon, and an optional icon color. Using only one column disables all rules for that type or name. Do not forget to add `set icons true` to your `lfrc` to see the icons. diff --git a/doc.txt b/doc.txt index 4071450c..65b71afa 100644 --- a/doc.txt +++ b/doc.txt @@ -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 diff --git a/lf.1 b/lf.1 index 890bbe0f..b1ae2691 100644 --- a/lf.1 +++ b/lf.1 @@ -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