feat: Go to shows a repo file's icon before its name
Search, Favourites, Recent and Opened links show the file's icon in its colour (lock, leaf, whale, plain file), as the files pane does: saft / backend/.env / COMPOSE_PROJECT_NAME.
This commit is contained in:
4 files changed
+58
-29
No files matched your search
@@ -269,7 +269,7 @@ func (m Model) refLabel(r ref.Ref) string {
|
||||
default:
|
||||
path = append(path, r.ContainerName(), r.Name)
|
||||
}
|
||||
label := m.pathLabel(r.Kind, path, "")
|
||||
label := m.pathLabel(r.Kind, path, "", m.refFileIcon(r))
|
||||
var extra []string
|
||||
if t := strings.ToLower(pluralLabels[r.Type]); t != "" && r.Type != provider.TypeSecret {
|
||||
if r.IsContainer() {
|
||||
|
||||
Reference in new issue
Block a user