Installing plugins on node.js (Tiddlyshow)

129 views
Skip to first unread message

Andrew Lister

unread,
Oct 5, 2019, 9:37:13 AM10/5/19
to TiddlyWiki
In an earlier thread , Jeremy said that when installing plugins on node.js one doesn't use the control panel; instead one modifies the tiddlywiki.info file. This worked for adding the markdown parser. Now I want to add Tiddlyshow. I tried adding a line to the .info file, but that didn't work:

 "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight",
        "tiddlywiki/markdown",
        "tiddlywiki/tiddlyshow"
    ],

Perhaps this is because the Tiddlyshow plugin is not listed in the central repository? I mean the repository one can access via "Get More Plugins" in the Control Panel.

Any help much appreciated!

Andrew Lister

unread,
Oct 5, 2019, 9:44:53 AM10/5/19
to TiddlyWiki
The instructions on installing plugins with client-server configuration suggest that the plugin has to be listed in the control panel, even though it's not installed via that mechanism:

Client-Server Configuration

Follow these instructions when using TiddlyWiki under Node.js:

    1. Identify the plugins you want to install using the Plugins tab of control panel (don't install the plugins from here, though). Plugins are identified by their type (ie language, theme or plugin) and their publisher and title. For example, the plugin $:/plugins/tiddlywiki/internals is referred to as tiddlywiki/internals
    2. Quit the server if it is running
    3. Edit the tiddlywiki.info file (it is in JSON format) and locate the pluginsthemes or languages section (see below)
    4. Add entries corresponding to the plugins you wish to add. Take care to retain commas to separate items, but do not terminate the last item in a list with a comma
    5. Restart the server
{
	"plugins": [
		"tiddlywiki/codemirror"
	],
	"themes": [
		"tiddlywiki/vanilla",
		"tiddlywiki/snowwhite"
	],
    "languages": [
        "es-ES",
        "fr-FR",
        "en-EN"
    ]
}

Mark S.

unread,
Oct 5, 2019, 1:25:02 PM10/5/19
to TiddlyWiki
I suspect that, in this case at least, you can simply follow the directions for showcase and drag-and-drop , save, and reload to activate the plugin.

When you installed TiddlyWiki following the node directions, you also downloaded a snapshot of the TW project. By editing the tiddlywiki.info file,
you linked to a plugin inside that snapshot. By linking, rather than drag/dropping, your plugin will update to the latest whenever you
update TW on node.

Mohammad

unread,
Oct 5, 2019, 2:07:57 PM10/5/19
to TiddlyWiki
Hi Andrew,
 Tiddlyshow is distributed as a packaged plugin using single .tid file!
So, simply drag and drop it into your wiki to have it working.

I hope I can later on publish the Node.js version!

Cheers
Mohammad

Andrew Lister

unread,
Oct 5, 2019, 5:01:31 PM10/5/19
to TiddlyWiki
I must be doing something basic wrong.

From the github page:


I drag the tiddlyshow_plugin.tid link onto my TW. This brings up an import dialogue, which generates a tiddler called "untitled" containing a link to the plugin (a tiddler containing nothing but: https://github.com/kookma/Tiddlyshow/blob/master/tiddlyshow_plugin.tid).

I tried reloading plus restarting the node.js and then loading but no plugin.

Andrew Lister

unread,
Oct 5, 2019, 5:05:27 PM10/5/19
to TiddlyWiki
Ah, so installing by drag and drop works, but then each plugin needs to be updated manually, whereas installing via modifying the info file ensures plugins are updated automatically. Got it.

I just can't figure out the drag and drop; all I get is a tiddler with a link in it (as I explain below).  

Sycom

unread,
Oct 5, 2019, 5:11:03 PM10/5/19
to TiddlyWiki
Hello Andrew,

You should download the .tid file on your computer and then put it in your "tiddlers" folder (or any subfolder). Then launch.

You may also drag the file to your wiki on 127.0.0.1:8080, but you will have to restart the wiki...

This plugin is not designed to be declared from tiddlywiki.info.

Hope this helps

Regards

Sylvain
@sycom

Mark S.

unread,
Oct 5, 2019, 5:21:03 PM10/5/19
to TiddlyWiki
You can't actually drag and drop from the Github page. That would be really convenient. In fact, GH could be a lot more convenient when it comes
to downloading stuff.

You need to click on the 

tiddlyshow_plugin.tid


link. This will take you to the plugin's page.

Right click on the "raw" link for the file and then choose "Save Link As ...". Save to somewhere on your hard drive. Use your favorite file explorer to find the file. Then drag it to your TW file.

The import title should be "$:/plugins/kookma/tiddlyshow"

With this particular plugin, it may be enough to save and reload -- I don't think it uses any javascript.

Good luck!

Andrew Lister

unread,
Oct 5, 2019, 8:16:17 PM10/5/19
to TiddlyWiki
Thank you Mark and Sylvain - saving to computer then dragging file to TW worked. Mac OS helpfully added .txt to the end of the file but I knew to delete that.

Andrew Lister

unread,
Oct 5, 2019, 8:25:28 PM10/5/19
to TiddlyWiki
And Tiddlyshow is awesome!
Reply all
Reply to author
Forward
0 new messages