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

-6
View File
@@ -38,7 +38,6 @@ var (
gConfigPaths []string
gColorsPaths []string
gIconsPaths []string
gRulerPaths []string
gFilesPath string
gMarksPath string
gTagsPath string
@@ -106,11 +105,6 @@ func init() {
filepath.Join(config, "lf", "icons"),
}
gRulerPaths = []string{
filepath.Join("/etc", "lf", "ruler"),
filepath.Join(config, "lf", "ruler"),
}
data := cmp.Or(
os.Getenv("LF_DATA_HOME"),
os.Getenv("XDG_DATA_HOME"),