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

+12
View File
@@ -169,6 +169,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 "\033[36m%p\033[0m %c %u %g %s %t %L")
tabstop int (default 8)
tagfmt string (default "\033[31m")
tempmarks string (default '')
@@ -974,6 +975,17 @@ diacritic. This option has no effect when 'ignoredia' is disabled.
Sort type for directories. Currently supported sort types are 'natural', 'name',
'size', 'time', 'ctime', 'atime', and 'ext'.
statfmt string (default "\033[36m%p\033[0m %c %u %g %s %t %L")
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 "\033[36m%p\033[0m
%s %t %L".
tabstop int (default 8)
Number of space characters to show for horizontal tabulation (U+0009) character.