[TW5] Is there a way to give an alternate path to plugin folders?

66 views
Skip to first unread message

Jed Carty

unread,
Sep 30, 2017, 4:18:40 PM9/30/17
to TiddlyWiki
Is there a way to change the search paths for plugins when using the node version of tiddlywiki? For now I am just using symlinks but I would prefer just being able to point to the folder in some configuration.

Mark S.

unread,
Sep 30, 2017, 6:10:18 PM9/30/17
to TiddlyWiki
Are they on the same drive? Just did an experiment where I went up the tree and back down to a different directory (still below my github directory) and was able to patch in a plugin.  Don't know what syntax would be required for an absolute path on Windows.

Mark


RichardWilliamSmith

unread,
Sep 30, 2017, 7:17:38 PM9/30/17
to TiddlyWiki
I haven't tried it, but can you just include it using the tiddlywiki.info file? http://tiddlywiki.com/#tiddlywiki.info%20Files

Mark S.

unread,
Sep 30, 2017, 7:37:19 PM9/30/17
to TiddlyWiki
What the plugin section looked like for my experiment:

    "plugins": [
       
"tiddlywiki/tiddlyweb",
       
"tiddlywiki/filesystem",
       
"tiddlywiki/highlight",
       
"tiddlywiki/mobiledragdrop",
       
"../../plugins/test"
   
],

Where "plugins" is a directory below my github directory.

Mark

BJ

unread,
Oct 1, 2017, 3:57:47 AM10/1/17
to TiddlyWiki
you can use the environment variable TIDDLYWIKI_PLUGIN_PATH
BJ

Jed Carty

unread,
Oct 1, 2017, 4:47:03 AM10/1/17
to TiddlyWiki
Thank you BJ! That is what I was looking for. I am not sure why I had so much trouble finding that in the code.

I don't have a global install of tiddlywiki but I want to have my plugins available globally so I don't have to worry about making sure that each install has the same version of all my plugins. I wrote relative paths incorrectly often enough that I gave up on that option.

PMario

unread,
Oct 1, 2017, 4:55:17 AM10/1/17
to tiddl...@googlegroups.com
Hi,


On Saturday, September 30, 2017 at 10:18:40 PM UTC+2, Jed Carty wrote:
Is there a way to change the search paths for plugins when using the node version of tiddlywiki? For now I am just using symlinks but I would prefer just being able to point to the folder in some configuration.

http://tiddlywiki.com/#Environment%20Variables%20on%20Node.js

It works like the OS PATH variable. So you can use the os separator and add several paths. They are all searched from left to right. First one found wins. ... as PATH

-m

Reply all
Reply to author
Forward
0 new messages