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

Commit 2a503e6

Browse files
[locate] v3
1 parent a322598 commit 2a503e6

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

locate/__init__.py

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

1414
from albert import *
1515

16-
md_iid = '2.3'
17-
md_version = "1.10"
16+
md_iid = "3.0"
17+
md_version = "2.0"
1818
md_name = "Locate"
1919
md_description = "Find and open files using locate"
2020
md_license = "MIT"
@@ -27,11 +27,7 @@ class Plugin(PluginInstance, TriggerQueryHandler):
2727

2828
def __init__(self):
2929
PluginInstance.__init__(self)
30-
TriggerQueryHandler.__init__(
31-
self, self.id, self.name, self.description,
32-
synopsis='<locate params>',
33-
defaultTrigger="'"
34-
)
30+
TriggerQueryHandler.__init__(self)
3531

3632
self.iconUrls = [
3733
"xdg:preferences-system-search",
@@ -41,6 +37,12 @@ def __init__(self):
4137
f"file:{Path(__file__).parent}/locate.svg"
4238
]
4339

40+
def synopsis(self, query):
41+
return "<locate params>"
42+
43+
def defaultTrigger(self):
44+
return "'"
45+
4446
def handleTriggerQuery(self, query):
4547
if len(query.string) > 2:
4648

0 commit comments

Comments
 (0)