refactored line colorizer

This commit is contained in:
2026-01-19 13:54:05 +01:00
parent bba477f56d
commit 473a009a86
3 changed files with 22 additions and 28 deletions

View File

@@ -111,10 +111,6 @@ type Config struct {
Colorizers []string // []string{"/ /-/", "/foo/fg[:bg]/"}
UseColorizers []Transposer // {Search: re, Replace: color}
/*
FIXME: make configurable somehow, config file or ENV
see https://github.com/gookit/color.
*/
ColorStyle color.Style
HighlightStyle color.Style
NoHighlightStyle color.Style

View File

@@ -39,7 +39,6 @@ func TestPrepareModeFlags(t *testing.T) {
{Modeflag{}, ASCII},
}
// FIXME: use a map for easier printing
for _, testdata := range tests {
testname := fmt.Sprintf("PrepareModeFlags-expect-%d", testdata.expect)
t.Run(testname, func(t *testing.T) {