File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
src/gettingstarted/extension Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -19,31 +19,8 @@ An Albert Python plugin is a Python module having an interface defined in the
1919[ ** Albert stub file** ] ( https://github.com/albertlauncher/albert-plugin-python/blob/main/albert.pyi ) .
2020At runtime the stub file is written to your * user Python plugin directory* ,
2121where it serves as inline documentation and coding assistance in your IDE while development.
22-
23- A minimal trigger query handler plugin:
24-
25- ``` python
26- from albert import *
27-
28- md_iid = ' 5.0'
29- md_version = ' 1.0'
30- md_name = ' My plugin'
31- md_description = ' Does things'
32-
33- class Plugin (PluginInstance , TriggerQueryHandler ):
34-
35- def __init__ (self ):
36- PluginInstance.__init__ (self )
37- TriggerQueryHandler.__init__ (self )
38-
39- def handleTriggerQuery (self , query ):
40- # query.add(StandardItem(…))
41- ```
42-
43-
44- Next, skim through the [ Python stub file] ( https://github.com/albertlauncher/albert-plugin-python/blob/main/albert.pyi ) .
4522For reference see the [ official plugins] ( https://github.com/albertlauncher/albert-plugin-python/tree/main/plugins ) .
46- In case of questions see the [ C++ API] ( / reference/namespacealbert .html) .
23+ Also see the [ C++ API reference ] ( reference/topics .html ) for details .
4724
4825
4926<!-- ## Tutorial-->
You can’t perform that action at this time.
0 commit comments