feat!: Load ruler file dynamically (#2338)

* feat!: Load ruler file dynamically

* Add documentation

* Fix bug with custom filename

* Update `CHANGELOG.md`

* Add docs for `statfmt`
This commit is contained in:
Joe Lim authored and GitHub committed 2026-01-12 17:48:19 +11:00
1 parent d00fd5c752
commit 8ed089cc25
11 files changed
+61 -81

No files matched your search

+3 -2
View File
@@ -155,8 +155,6 @@ func (e *setExpr) eval(app *app, _ []string) {
}
case "roundbox", "noroundbox", "roundbox!":
err = applyBoolOpt(&gOpts.roundbox, e)
case "rulerfile", "norulerfile", "rulerfile!":
err = applyBoolOpt(&gOpts.rulerfile, e)
case "showbinds", "noshowbinds", "showbinds!":
err = applyBoolOpt(&gOpts.showbinds, e)
case "smartcase", "nosmartcase", "smartcase!":
@@ -336,6 +334,9 @@ func (e *setExpr) eval(app *app, _ []string) {
app.ui.wins = getWins(app.ui.screen)
app.nav.resize(app.ui)
app.ui.loadFile(app, true)
case "rulerfile", "norulerfile", "rulerfile!":
gOpts.rulerfile = replaceTilde(e.val)
app.ui.ruler, app.ui.rulerErr = parseRuler(gOpts.rulerfile)
case "rulerfmt":
gOpts.rulerfmt = e.val
case "scrolloff":