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:
1 parent
cbb80a0d44
commit
b08ab8dfb7
7 files changed
+55
-5
No files matched your search
@@ -418,6 +418,12 @@ func (e *setExpr) eval(app *app, args []string) {
|
||||
}
|
||||
case "timefmt":
|
||||
gOpts.timefmt = e.val
|
||||
case "infotimefmtnew":
|
||||
gOpts.infotimefmtnew = e.val
|
||||
gInfotimefmtMaxLen = max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold))
|
||||
case "infotimefmtold":
|
||||
gOpts.infotimefmtold = e.val
|
||||
gInfotimefmtMaxLen = max(len(gOpts.infotimefmtnew), len(gOpts.infotimefmtold))
|
||||
case "truncatechar":
|
||||
if runeSliceWidth([]rune(e.val)) != 1 {
|
||||
app.ui.echoerr("truncatechar: value should be a single character")
|
||||
|
||||
Reference in new issue
Block a user