feat!: deprecate rulerfmt/statfmt options (#2477)
* feat!: deprecate `rulerfmt`/`statfmt` options These will be replaced with the ruler file (specified using the `rulerfile` option). * Add deprecation comments to involved functions * Update `CHANGELOG.md`
This commit is contained in:
1 parent
a966b1387c
commit
3db6242620
3 files changed
+6
No files matched your search
@@ -361,6 +361,7 @@ func (e *setExpr) eval(app *app, _ []string) {
|
||||
gOpts.rulerfile = replaceTilde(e.val)
|
||||
app.ui.ruler, app.ui.rulerErr = parseRuler(gOpts.rulerfile)
|
||||
case "rulerfmt":
|
||||
app.ui.echoerr("option 'rulerfmt' is deprecated and will be replaced by the 'rulerfile' option")
|
||||
gOpts.rulerfmt = e.val
|
||||
case "scrolloff":
|
||||
n, err := strconv.Atoi(e.val)
|
||||
@@ -418,6 +419,7 @@ func (e *setExpr) eval(app *app, _ []string) {
|
||||
gOpts.sortby = method
|
||||
app.nav.sort()
|
||||
case "statfmt":
|
||||
app.ui.echoerr("option 'statfmt' is deprecated and will be replaced by the 'rulerfile' option")
|
||||
gOpts.statfmt = e.val
|
||||
case "tabstop":
|
||||
n, err := strconv.Atoi(e.val)
|
||||
|
||||
Reference in new issue
Block a user