Skip to content

Commit a2a3f54

Browse files
Remove plugin example and update C++ API reference
Removed example code for a minimal trigger query handler plugin and updated links for the C++ API reference.
1 parent 121a0c3 commit a2a3f54

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/gettingstarted/extension/python.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff 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).
2020
At runtime the stub file is written to your *user Python plugin directory*,
2121
where 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).
4522
For 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-->

0 commit comments

Comments
 (0)