Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit e5034a3

Browse files
committed
[vscode_projects:1.6] Provide project tags in the subtext
1 parent 61926ff commit e5034a3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vscode_projects/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from albert import *
1010

1111
md_iid = "2.3"
12-
md_version = "1.5"
12+
md_version = "1.6"
1313
md_name = "VSCode projects"
1414
md_description = "Open VSCode projects"
1515
md_url = "https://github.com/albertlauncher/python/tree/master/vscode_projects"
@@ -353,10 +353,15 @@ def _createItem(self, project: Project, query: Query) -> StandardItem:
353353
)
354354
)
355355

356+
subtext = ""
357+
358+
if len(project.tags) > 0:
359+
subtext = "<" + ",".join(project.tags) + "> "
360+
356361
return StandardItem(
357362
id=project.path,
358363
text=project.displayName,
359-
subtext=project.path,
364+
subtext=f"{subtext}{project.path}",
360365
iconUrls=self.iconUrls,
361366
inputActionText=f"{query.trigger} {project.displayName}",
362367
actions=actions,

0 commit comments

Comments
 (0)