Continue PR: configure time format in the info column (#751)

* Allow to configure time format in the info column

* Update infotimefmt PR from Krzysztof Maicher

Add format length, rename options

Co-authored-by: Krzysztof Maicher <krzysztof.maicher@gmail.com>
This commit is contained in:
Christian ZanglandKrzysztof Maicher authored and GitHub committed 2022-02-12 12:23:22 +03:00
1 parent cbb80a0d44
commit b08ab8dfb7
7 files changed
+55 -5

No files matched your search

+12
View File
@@ -144,6 +144,8 @@ The following options can be used to customize the behavior of lf:
tabstop int (default 8)
tempmarks string (default '')
timefmt string (default 'Mon Jan _2 15:04:05 2006')
infotimefmtnew string (default 'Jan _2 15:04')
infotimefmtold string (default 'Jan _2 2006')
truncatechar string (default '~')
waitmsg string (default 'Press any key to continue')
wrapscan bool (default on)
@@ -774,6 +776,16 @@ treated as temporary and does not need to be specified.
Format string of the file modification time shown in the bottom line.
infotimefmtnew string (default 'Jan _2 15:04')
Format string of the file time shown in the info column when it matches this
year.
infotimefmtold string (default 'Jan _2 2006')
Format string of the file time shown in the info column when it doesn't
match this year.
truncatechar string (default '~')
Truncate character shown at the end when the file name does not fit to the