Skip to content

Commit

Permalink
[vscode_projects:1.6] Provide project tags in the subtext
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharsie committed Oct 12, 2024
1 parent 2059b6f commit f7638ce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vscode_projects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from albert import *

md_iid = "2.3"
md_version = "1.5"
md_version = "1.6"
md_name = "VSCode projects"
md_description = "Open VSCode projects"
md_url = "https://github.com/albertlauncher/python/tree/master/vscode_projects"
Expand Down Expand Up @@ -353,10 +353,15 @@ def _createItem(self, project: Project, query: Query) -> StandardItem:
)
)

subtext = ""

if len(project.tags) > 0:
subtext = "<" + ",".join(project.tags) + "> "

return StandardItem(
id=project.path,
text=project.displayName,
subtext=project.path,
subtext=f"{subtext}{project.path}",
iconUrls=self.iconUrls,
inputActionText=f"{query.trigger} {project.displayName}",
actions=actions,
Expand Down

0 comments on commit f7638ce

Please sign in to comment.