I’m pleased to announce TiddlyTools/Search/SaveAs, that adds “save as plugin” and “save as importer” buttons to the $:/AdvancedSearch>Filters tab.
Start by entering or selecting a filter in the $:/AdvancedSearch>Filters tab.  When matching tiddlers are found, “save as plugin” and “save as importer” buttons will appear. Pressing either button displays a popup.  In the popup:
- Enter a new plugin title or press the “list” icon to select an existing plugin title
- Enter optional plugin fields such as author,name,description,source, etc.
- You can enable the “add matching tiddlers to existing plugin” checkbox to update the contents of an existing plugin; otherwise, its contents will be replaced
- Press the “done” (checkmark) button to create the plugin tiddler. If it already exists, you will be asked to confirm before it is overwritten
- If a plugin tiddler does not contain javascript tiddlers its shadow tiddlers will be immediately available; otherwise, you must save-and-reload for the plugin to be “unpacked” at startup
Alternatively, you can create an “importer” that is similar to a plugin in that it contains a set of tiddlers stored as a JSON object, but works like a snapshot of a TWCore standard $:/Import tiddler.
Instead of installing shadow tiddlers at startup, the set of tiddlers remains “frozen” in the importer tiddler until you view that tiddler and press the “import” button to complete the process and unpack its contents as REAL tiddlers. Note that when an importer tiddler is unpacked, it’s contents are automatically replaced with the same kind of “status” output as the TWCore’s $:/Import tiddler.
Also note that if your filter results include any existing plugins or importers, the contents of those tiddlers will be merged into the new plugin or importer. You can use this feature to combine existing plugins and importers, or convert plugins to importers, or vice versa
enjoy,
-e