We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbebdfb commit 0f928b0Copy full SHA for 0f928b0
modules/fileicon/icon.go
@@ -36,13 +36,14 @@ func getBasicFileIconName(entry *git.TreeEntry) string {
36
37
func getFileIconNames(entry *git.TreeEntry) []string {
38
if entry.IsDir() {
39
- return []string{"directory"}
+ fileName := strings.ToLower(path.Base(entry.Name()))
40
+ return []string{fileName, "directory"}
41
}
42
43
if entry.IsRegular() {
44
fileName := strings.ToLower(path.Base(entry.Name()))
45
ext := strings.ToLower(strings.TrimPrefix(path.Ext(fileName), "."))
- return []string{fileName, ext}
46
+ return []string{fileName, ext, "file"}
47
48
49
return nil
0 commit comments