diff --git a/colors.go b/colors.go index ced3ffcd..6d90e20c 100644 --- a/colors.go +++ b/colors.go @@ -197,6 +197,16 @@ func (cm styleMap) get(f *file) tcell.Style { return val } + if f.IsDir() { + if val, ok := cm[f.Name()+"/"]; ok { + return val + } + } + + if val, ok := cm[f.Name()]; ok { + return val + } + if val, ok := cm[f.Name()]; ok { return val } diff --git a/icons.go b/icons.go index c8ba854c..6023f4f1 100644 --- a/icons.go +++ b/icons.go @@ -50,6 +50,12 @@ func (im iconMap) get(f *file) string { return val } + if f.IsDir() { + if val, ok := im[f.Name()+"/"]; ok { + return val + } + } + if val, ok := im[f.Name()]; ok { return val }