Gatha 2.0.0: Create Plugins and Packages in a Second

Hello Mohammad,

Great work!

One question / request for feature: would it be possible to have a function similare to your “export/plugin-folder” to export a set of plugins packaged as a plugin library?

BR,

Eskha

Hi @Eskha,
It is in my todo list! I think @telumire has created a tool to export a plugin library from a single file html!
Now Gatha 2.0 can create a demo with several plugins/subplugins packaged at the same time and export into demowiki, but cannot export the plugin library yet!

I have wanted this for ages so please share if you can find any references.

Hi @TW_Tones,

For making the Plugin library shared by @telumire here (I have not tested it)
PLM — Plugins Lifecycle Management You are currently in read-only. To see the full UI ; clone, download or install PLM. (tiddlyhost.com)

4 Likes

Last time I have tried it, this was not working (no plugins displayed when opening the library from an other TW) and I was also not able to understand how to create / update the library in the host TW in a simple way.

Making a plugin library is in the todo list. By the way, if you have Node.js + TW, there is a plugin library edition that can create a plugin library from your plugins.

Thank you Mohammad for the answer.

Could you provide the link to this plugin library edition?
(I have neither found it on TW5 website nor on the community links website).

It is here: TiddlyWiki5/editions/pluginlibrary at master · TiddlyWiki/TiddlyWiki5 (github.com)

Wonderful a tinka alternative! Can’t wait for library support

1 Like

Thank you Mohammad.

I will try to understand how to use this edition.

I have downloaded a local copy from Gatha Studio Workspace 2.0.1 — develop plugin using Gatha and Gatha-Thirdflow on Node.JS and I’m currently trying to understand how it works.

The first major pain point is lack of line numbers in tiddler edit mode. I can live with this when tiddlers contain general knowledge in form of plain text, but it becomes a problem with code, especially with wikitext, which can contain quite long lines due to multiple levels of indentation, length of filter expressions etc. An additional constraint is the limited screen size on a smartphone.

I know it’s possible to get line numbers in textarea element when editing tiddlers by installing the CodeMirror plugin. But this Gatha edition is a whole collection of plugins already. And it doesn’t bundle CodeMirror (for whatever reason). If I add it myself and it ends conflicting with Gatha, I’ll be back to the forum complaining anyway.

@Mohammad , my humble feature request is to have line numbers in tiddler edit mode by default in this Gatha edition. Ideally, not related to CodeMirror at all (which would increase the size of the single file wiki anyway, and quite much). Maybe switcheable on through a Gatha setting at least.

This is not related to Gatha. You need to install CodeMirror official plugin and turn on show line number

That’s right! You need to have your own IDE setup as you like, but you can see from the demo, what it have installed. By the way, I will add in documentation what are the recommended plugins.

It is beyond the scope of Gatha! But I can add a line in doc or recommend a bundle of configuration tiddlers.

My recommendation is to set up your development environment by installing the appropriate tools such as Node.js, TiddlyWiki, Gatha, etc. In the single-file version, add the necessary plugins. Then, utilize your own customized development tools. Gatha is only one of the tools and not a total solution. The primary purpose of Gatha is to enable users to develop plugins directly within the browser.

Hey Mohammad,
This looks really good !
Is it possible to add more templates for javascript widgets etc ?

Cheers
CB

1 Like

This would be very helpful for starters, indeed.

1 Like

Sure, I would be happy to add such template by submitting your PR.

@Mohammad I did some more searches about CodeMirror and I found TW5CME — CodeMirror Editor Enhanced Framework for TiddlyWiki5 . Since Gatha is the “base” wiki, and has quite a few plugins coupled together, I tried to import things from TW5-CodeMirror-Enhanced into Gatha. But that wiki is, as well, a development centric “IDE” consisting of multiple plugins. Since I already had CodeMirror installed from official library in Gatha, I tried to import only CodeMirror Enhanced and CodeMirror Themes from TW5-CodeMirror-Enhanced demo wiki. I did not get wikitext syntax highlight in tiddler edit mode in Gatha after that. Maybe I need to add some more plugins from there. Maybe the problem is in the version mismatch: TW5-CodeMirror-Enhanced (and CodeMirror that it bundles) is for an older version of TiddlyWiki. If the planned Gatha docs could include some hints about getting the CodeMirror related functionality from TW5-CodeMirror-Enhanced into Gatha, it would be cool, because it’s exactly what I’m missing and I can’t easily figure a simple workflow about merging these two things.

I am not quite familiar with TW5CME — CodeMirror Editor Enhanced Framework for TiddlyWiki5 but @oeyoews has developed CM6 plugin which partially support TW syntax highlighting.

I have finaly started to leverage Gatha for plugin creation.

  • Thanks again @Mohammad
  • I have hundereds of posible things to package

I just want to ask if I have found a missing feature, or not found it yet?

  • I raise it here because it makes sense to combine it with Gatha as it would share code.

While preparing a plugin I raised this Topic Converting tiddlers to shadow tiddlers by moving a package to a plugin

I would like to generate a Plugin and test to see there are no gaps as it moves from a package of tiddlers, to a plugin of shadow tiddlers.

When I look in Gatha the Export plugin menu offers the following;

  • packaged plugin (Json file)
  • plugin demo (demo.html) .
  • plugin folder (zip file)
  • plugin source (backupjson file)

Whilst art the same time the plugin project in the Gatha tab includes the “plugin tiddler” of the form $:/plugins/PublisherName/PluginName the tiddler remains a “tiddler”. Using the demo option I can export it and the demo contains a true plugin tiddler (containing Shadows).

Missing Feature? Pack Plugin?

Perhaps an “export option” to move all project tiddlers, into a plugin, in the wiki in which Gatha is installed. This would allow a plugin developed and saved as a plugin while cleaning up all the related tiddlers without leaving the wiki.

  • Then using the “Load Plugin” feature when building a new Plugin update project.

It would be nice if we could do the same for the zip form of a plugin, basicaly create as a tiddler in the wiki rather than export it.

Futures

At some stage I would like (us) to make a simple plugin to “load Plugin”, ie split a plugin into tiddlers

  • I would also like this to have an option not to replace tiddlers that are aleady edited into tiddlers.

Then make changes and Pack the plugin back. Without the rest of the Gatha features.

  • The reason for this is both for rapid fixes and to handle data tiddlers. ie tiddlers containing data tiddlers as demonstrated here test-data.tiddlyhost.com
  • This would allow you to modify shadow tiddlers provided in a dataplugin and repackage it into an updated plugin

The “Export plugin as demo.html” feature creates a copy of the current wiki used as an IDE (integrated development environment). Each time you export, a flawless duplicate is generated (you need to configure this, the default option is empty.html+plugin+docs), and you can have multiple demos without them overwriting each other. This allows you to perform destructive tests without worrying about losing anything in the IDE. For this reason, I prefer not to use the same IDE for both development and testing.

1 Like