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:
1 parent
821b2fcd51
commit
eb84772032
8 files changed
+79
-1
No files matched your search
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user