Добавил икогнку для файлов git

This commit is contained in:
svkalinin
2022-12-07 09:08:43 +03:00
parent fbb107f14a
commit 3e3000de62
2 changed files with 21 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ namespace eval Tree {
set findImg [::FindImage gitlab]
} elseif {[string match {*bitbucket*} [string tolower $text]]} {
set findImg [::FindImage bitbucket]
} elseif {[string match {\.git*} [string tolower $text]]} {
set findImg [::FindImage git]
}
if {$fileExt ne "" || $findImg ne ""} {
set image $findImg
@@ -47,6 +49,8 @@ namespace eval Tree {
set image [::FindImage redhat]
} elseif {[string match {*gitlab*} [string tolower [file tail $item]]]} {
set image [::FindImage gitlab]
} elseif {[string match {.git} [string tolower [file tail $item]]]} {
set image [::FindImage git]
} else {
set image pixel
}