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

Commit a12c9b0

Browse files
[pacman] v3
1 parent 2a503e6 commit a12c9b0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

pacman/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from albert import Action, StandardItem, PluginInstance, TriggerQueryHandler, runTerminal, openUrl
99

10-
md_iid = '2.3'
11-
md_version = "1.10"
10+
md_iid = "3.0"
11+
md_version = "2.0"
1212
md_name = "PacMan"
1313
md_description = "Search, install and remove packages"
1414
md_license = "MIT"
@@ -23,17 +23,19 @@ class Plugin(PluginInstance, TriggerQueryHandler):
2323

2424
def __init__(self):
2525
PluginInstance.__init__(self)
26-
TriggerQueryHandler.__init__(
27-
self, self.id, self.name, self.description,
28-
synopsis='<package name>',
29-
defaultTrigger='pac '
30-
)
26+
TriggerQueryHandler.__init__(self)
3127
self.iconUrls = [
3228
"xdg:archlinux-logo",
3329
"xdg:system-software-install",
3430
f"file:{pathlib.Path(__file__).parent}/arch.svg"
3531
]
3632

33+
def synopsis(self, query):
34+
return "<package name>"
35+
36+
def defaultTrigger(self):
37+
return "pac "
38+
3739
def handleTriggerQuery(self, query):
3840
stripped = query.string.strip()
3941

0 commit comments

Comments
 (0)