Add rulerfmt option for improved ruler customization (#1386)

* Implement basic rulerfmt mechanism

* Add deprecation warning for ruler option

* Implement basic placeholders

* Add placeholder for number of hidden files

* Implement placeholders for options

* Add documentation
This commit is contained in:
Joe Lim authored and GitHub committed 2023-09-03 13:31:50 +10:00
1 parent 8d013c9375
commit 439fb038e5
8 files changed
+122 -30

No files matched your search

+4
View File
@@ -503,6 +503,10 @@ func (e *setExpr) eval(app *app, args []string) {
}
}
gOpts.ruler = toks
app.ui.echoerr("option 'ruler' is deprecated, use 'rulerfmt' instead")
return
case "rulerfmt":
gOpts.rulerfmt = e.val
case "preserve":
if e.val == "" {
gOpts.preserve = nil