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

+1
View File
@@ -292,6 +292,7 @@ func naturalLess(s1, s2 string) bool {
}
var reModKey = regexp.MustCompile(`<(c|s|a)-(.+)>`)
var reRulerSub = regexp.MustCompile(`%[apmcsfithd]|%\{[^}]+\}`)
var reWord = regexp.MustCompile(`(\pL|\pN)+`)
var reWordBeg = regexp.MustCompile(`([^\pL\pN]|^)(\pL|\pN)`)