mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
...
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user