From 895e22a1b5e5c335bf33d41151c8f3ad1b8ccf73 Mon Sep 17 00:00:00 2001 From: Lucas Burns <44355502+lmburns@users.noreply.github.com> Date: Fri, 4 Feb 2022 15:01:08 -0600 Subject: [PATCH] added: `*filename` as a color sequence to match against (#747) --- colors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors.go b/colors.go index 345dc5f..0e86058 100644 --- a/colors.go +++ b/colors.go @@ -276,6 +276,10 @@ func (sm styleMap) get(f *file) tcell.Style { return val } + if val, ok := sm["*"+f.Name()]; ok { + return val + } + if val, ok := sm[filepath.Base(f.Name())+".*"]; ok { return val }