From f0537198e6e51886f2c0d1e55f37626c760a21e6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 May 2025 22:29:05 +0530 Subject: [PATCH] ... --- kittens/choose_files/results.go | 2 +- tools/icons/file-types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } }