diff --git a/kittens/choose_files/results.go b/kittens/choose_files/results.go index 3af96d313..cf61cb1da 100644 --- a/kittens/choose_files/results.go +++ b/kittens/choose_files/results.go @@ -30,7 +30,7 @@ func (h *Handler) draw_results_title() { if len(tt) < len(text) { text = wcswidth.TruncateToVisualLength(text, available_width-1) } - text = fmt.Sprintf(" %c %s ", icons.FOLDER, h.lp.SprintStyled("fg=intense-white bold", text)) + text = fmt.Sprintf(" %s %s ", h.lp.SprintStyled("fg=blue", string(icons.FOLDER)+" "), h.lp.SprintStyled("fg=intense-white bold", text)) extra := available_width - wcswidth.Stringwidth(text) x := 3 if extra > 1 { diff --git a/tools/icons/file-types.go b/tools/icons/file-types.go index d735abec2..c2e887ae7 100644 --- a/tools/icons/file-types.go +++ b/tools/icons/file-types.go @@ -1089,7 +1089,7 @@ func IconForPath(path string) string { return string(ans) } if _, ext, found := strings.Cut(bn, "."); found { - if ans, found := FileNameMap()[strings.ToLower(ext)]; found { + if ans, found := ExtensionMap()[strings.ToLower(ext)]; found { return string(ans) } }