docs: fix typos and grammar in documentation (#2604)
This commit is contained in:
1 parent
d6eebeb8ad
commit
c53aacf373
3 files changed
+25
-25
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user