-
Notifications
You must be signed in to change notification settings - Fork 45
3. How to write a plugin
corey edited this page Jan 9, 2023
·
4 revisions
Seer takes the first argument as the executor and then replaces the placeholders. ${input_file}
is the absolute file path you just triggered. ${output_file}
is the temp file path used to save converted file.
C:/ApkMetaInfo2Json/ApkMetaInfo2Json.exe ${input_file} ${output_file}.json
-
process
- A file is triggered by SPACE
- Seer searches from plugin settings and finds that
apk
is defined as a plugin type - Seer runs
ApkMetaInfo2Json.exe
with defined parameters- In this case,
ApkMetaInfo2Json.exe
read contents from the triggeredapk
file, then write ajson
file at${output_file}
- In this case,
- When the
ApkMetaInfo2Json.exe
finishes and exits, Seer will go to the temporary directory to read thejson
file and display it.
-
A plugin can be any executable program
- a
CMD
script: rename - a
BAT
script: epub - any third-party program that provides conversion functionality
-
dll_lib_exports
: this is extracted somewhere from Microsoft Windows -
ImageMagick
: https://imagemagick.org/index.php -
exiftool
: https://exiftool.org/
-
- any user-defined program:
- a
-
Usually such plugins generate a temporary file.
- Seer will automatically delete temporary files older than 20 days.
- Temporary files will be removed by adding the parameter
${no_cache}
at the end of the commands.
This kind of plugin can customize the display instead of the built-in display mode of the Seer.
- The Qt/C++ example can be found here: FontViewer
- The Python example for Scripts module can be found here: ipynb