From 08bd36ea783ca0709d2900220a38864c26b73109 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Sat, 2 Dec 2023 11:28:00 +1300 Subject: [PATCH 1/2] Add bicep & bicepparam icons --- pkg/gui/presentation/icons/file_icons.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/gui/presentation/icons/file_icons.go b/pkg/gui/presentation/icons/file_icons.go index 05832c55db8..cdc284df506 100644 --- a/pkg/gui/presentation/icons/file_icons.go +++ b/pkg/gui/presentation/icons/file_icons.go @@ -98,6 +98,8 @@ var extIconMap = map[string]IconProperties{ ".csv": {Icon: "\uf1c3", Color: 113}, //  ".csx": {Icon: "\U000f031b", Color: 58}, // 󰌛 ".cxx": {Icon: "\ue61d", Color: 74}, //  + ".bicep": {Icon: "\ue63b", Color: 32}, //  + ".bicepparam": {Icon: "\ue63b", Color: 103}, //  ".d": {Icon: "\ue7af", Color: 28}, //  ".dart": {Icon: "\ue798", Color: 25}, //  ".db": {Icon: "\uf1c0", Color: 188}, //  @@ -326,7 +328,12 @@ func patchFileIconsForNerdFontsV2() { extIconMap[".vue"] = IconProperties{Icon: "\ufd42", Color: 113} // ﵂ } -func IconForFile(name string, isSubmodule bool, isLinkedWorktree bool, isDirectory bool) IconProperties { +func IconForFile( + name string, + isSubmodule bool, + isLinkedWorktree bool, + isDirectory bool, +) IconProperties { base := filepath.Base(name) if icon, ok := nameIconMap[base]; ok { return icon From 2317dac7302227fc98e1434729efd0071845bcc8 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Thu, 21 Dec 2023 16:39:36 +1300 Subject: [PATCH 2/2] fix formatting --- pkg/gui/presentation/icons/file_icons.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/gui/presentation/icons/file_icons.go b/pkg/gui/presentation/icons/file_icons.go index cdc284df506..fe63cfa29bb 100644 --- a/pkg/gui/presentation/icons/file_icons.go +++ b/pkg/gui/presentation/icons/file_icons.go @@ -328,12 +328,7 @@ func patchFileIconsForNerdFontsV2() { extIconMap[".vue"] = IconProperties{Icon: "\ufd42", Color: 113} // ﵂ } -func IconForFile( - name string, - isSubmodule bool, - isLinkedWorktree bool, - isDirectory bool, -) IconProperties { +func IconForFile(name string, isSubmodule bool, isLinkedWorktree bool, isDirectory bool) IconProperties { base := filepath.Base(name) if icon, ok := nameIconMap[base]; ok { return icon