Add statfmt option (#1288)

* Add `fileinfofmt` option

* echof is now unused

* Use different default for Windows

* Add new line to docs

* Indent placeholders description in documentation

* Change option name to `statfmt`

* Use plain text format for documentation
This commit is contained in:
Joe Lim authored and GitHub committed 2023-06-09 14:45:35 +03:00
1 parent 59f32193ae
commit 2ab4b14e88
9 files changed
+50 -17

No files matched your search

+7
View File
@@ -185,6 +185,7 @@ The following options can be used to customize the behavior of lf:
smartcase bool (default true)
smartdia bool (default false)
sortby string (default 'natural')
statfmt string (default "\e033[36m%p\e033[0m %c %u %g %s %t %L")
tabstop int (default 8)
tagfmt string (default "\e033[31m")
tempmarks string (default '')
@@ -1080,6 +1081,12 @@ Override 'ignoredia' option when the pattern contains a character with diacritic
.PP
Sort type for directories. Currently supported sort types are 'natural', 'name', 'size', 'time', 'ctime', 'atime', and 'ext'.
.PP
.EX
statfmt string (default "\e033[36m%p\e033[0m %c %u %g %s %t %L")
.EE
.PP
Format string of the file info shown in the bottom left corner. Special expansions are provided, '%p' as the file permissions, '%c' as the link count, '%u' as the user, '%g' as the group, '%s' as the file size, '%t' as the last modified time, and '%l' as the link target if it exists (otherwise a blank string). '%L' is the same as '%l' but with an arrow '-> ' prepended. On Windows, the link count, user and group fields are not supported and will be replaced with a blank string if specified. The default for Windows is "\e033[36m%p\e033[0m %s %t %L".
.PP
.EX
tabstop int (default 8)
.EE