In this section, we'll walk you through writing a random emoji string as the placeholder.
In this example, you should build an executable binary file or write an executable shell script, you can get an argument from commandline.
And you can refer our sample code in commandline demo plugin.
In this example, you need expose an endpoint /placeholder
in your web server, we'll use post method to request you.
And you can refer our sample code in http demo plugin.
In this example we create a placeholder file named placeholder.py
, and writing the following content:
In this example we create a placeholder file named placeholder.qlexpress
, and writing the following content:
Add the following content to plugin-spec.yml
:
placeholder-updaters:
- updater: "{entry}"
preview-text: a commandline placeholder
placeholder-updaters:
- updater: "{entry}/placeholder"
preview-text: 😁
placeholder-updaters:
- updater: ./placeholder.py
preview-text: a python placeholder
placeholder-updaters:
- updater: ./placeholder.qlexpress
preview-text: 😁