Customizable statusline, df (#1168)

* opts statusline, df

* renamed infostat -> ruler; removed os_lin, os_bsd

* removed vscode

---------

Co-authored-by: rr <rr@arveex.eu>
This commit is contained in:
rrveexandrr authored and GitHub committed 2023-04-09 14:50:34 +03:00
1 parent 821b2fcd51
commit eb84772032
8 files changed
+79 -1

No files matched your search

+15
View File
@@ -482,6 +482,21 @@ func (e *setExpr) eval(app *app, args []string) {
}
}
gOpts.info = toks
case "ruler":
if e.val == "" {
gOpts.ruler = nil
return
}
toks := strings.Split(e.val, ":")
for _, s := range toks {
switch s {
case "df", "acc", "progress", "selection", "ind", "tot":
default:
app.ui.echoerr("ruler: should consist of 'df', 'acc', 'progress', 'selection', or 'ind' separated with colon")
return
}
}
gOpts.ruler = toks
case "infotimefmtnew":
gOpts.infotimefmtnew = e.val
case "infotimefmtold":