From 26455dca09dff01b326dfdbc0e02f4b0e94b21e2 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 5 Feb 2022 00:02:50 +0300 Subject: [PATCH] add left star file name matching to icons cc #747 --- icons.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icons.go b/icons.go index a4122f8..30a14a9 100644 --- a/icons.go +++ b/icons.go @@ -113,6 +113,10 @@ func (im iconMap) get(f *file) string { return val } + if val, ok := im["*"+f.Name()]; ok { + return val + } + if val, ok := im[filepath.Base(f.Name())+".*"]; ok { return val }