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

Commit 5808276

Browse files
[pass] v3
1 parent a12c9b0 commit 5808276

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

pass/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import os
88
from albert import *
99

10-
md_iid = '2.3'
11-
md_version = "1.7"
10+
md_iid = "3.0"
11+
md_version = "2.0"
1212
md_name = "Pass"
1313
md_description = "Manage passwords in pass"
1414
md_license = "BSD-3"
@@ -23,11 +23,7 @@
2323
class Plugin(PluginInstance, TriggerQueryHandler):
2424
def __init__(self):
2525
PluginInstance.__init__(self)
26-
TriggerQueryHandler.__init__(
27-
self, self.id, self.name, self.description,
28-
synopsis='<pass-name>',
29-
defaultTrigger='pass '
30-
)
26+
TriggerQueryHandler.__init__(self)
3127
self.iconUrls = ["xdg:dialog-password"]
3228
self._use_otp = self.readConfig("use_otp", bool) or False
3329
self._otp_glob = self.readConfig("otp_glob", str) or "*-otp.gpg"
@@ -52,6 +48,12 @@ def otp_glob(self, value):
5248
self._otp_glob = value
5349
self.writeConfig("otp_glob", value)
5450

51+
def defaultTrigger(self):
52+
return "pass "
53+
54+
def synopsis(self, query):
55+
return "<pass-name>"
56+
5557
def configWidget(self):
5658
return [
5759
{"type": "checkbox", "property": "use_otp", "label": "Enable pass OTP extension"},

0 commit comments

Comments
 (0)