Call plugin from command line

Plugins for SynWrite and CudaText...
Post Reply
yxz11
Posts: 3
Joined: 29.10.2022 00:35

Call plugin from command line

Post by yxz11 »

Is there a way to call plugin from command line? Specifically, I want to call differ with two file names and let them open in cudatext and do a comparison. If cudatext is already open, I would like to use the existing window. Thanks.
main Alexey
Posts: 2533
Joined: 25.08.2021 18:15

Post by main Alexey »

Command line param:

-p=cuda_module#param1#param2... - Run the specified plugin, and pass to its "on_cli" event specified param strings. Count of params must be expected by plugin, e.g. Differ plugin supports "on_cli" and expects 2 filenames. If params contain spaces, you must double-quote the part of the command-line beginning with -p: "-p=......".

So, to call Differ:

Code: Select all

cudatext "-p=cuda_differ#/path/file1#/path/file2"
yxz11
Posts: 3
Joined: 29.10.2022 00:35

Post by yxz11 »

Thanks a lot, this works.
Post Reply