Creating a Custom Plugin - ccseer/Seer GitHub Wiki
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.
You can refer to the following example plugins:
- F3DViewer - 3D file viewer plugin
- OfficeViewer - Office document viewer plugin
- FontViewer - Font preview plugin
- JsonTreeViewer - JSON structure viewer plugin
Each project demonstrates a complete and practical implementation of the Seer plugin interface.