A plugin with few commands

81 views
Skip to first unread message

Mohammad Rahmani

unread,
Dec 10, 2020, 8:39:19 AM12/10/20
to tiddl...@googlegroups.com
I have a node.js plugin containing few JS tiddlers with module-type:command. That means my plugin has extended TW commands. I call them custom commands.

Now, I use the below environmental variable under Windows 10 to store all of my third party plugins.
  • TIDDLYWIKI_PLUGIN_PATH - Search path for ordinary plugins
Then I use the below command at shell for some development purpose.

    tiddlywiki editions/release --verbose --build release

with below tiddlywiki.info

{
  "includeWikis": [
    "../../src"
  ],
  "config": {
    "disable-hfs": "yes"
  },
  "plugins": [
    "tiddlywiki/codemirror",
    "tiddlywiki/highlight",
    "tiddlywiki/katex",
    "kookma/shiraz",
    "kookma/utility"
  ],
  "build": {
    "release": [
      "--releaseplugins",
      "--releasedemowiki"
    ]
  },
  "themes": [
    "tiddlywiki/vanilla",
    "tiddlywiki/snowwhite"
  ]
}



Tiddlywiki complains as: Error: Unknown command: releaseplugins

Strangely if I use the plugin as a packaged one (plugin.tid) NOT as a Node.js plugin folder, Tiddlywiki is happy and runs my custom commands

Would you please advise me if there is any limitation using custom commands? Why packaged plugin works but plugin folder not work.



Best wishes
Mohammad

Mohammad

unread,
Dec 10, 2020, 9:00:44 AM12/10/20
to TiddlyWiki
Please ignore my previous post.

I realized I have not included the plugin with custom command to my tiddlywiki.info file.
I think this is a sign of Alzheimer ;-)

--Mohammad

clutterstack

unread,
Dec 10, 2020, 9:03:59 AM12/10/20
to TiddlyWiki
:)

Coincidentally, I discovered the environment variables just yesterday. I could have saved my effort yesterday and learned it for free by reading your post today (if I could see the future)!

Mohammad

unread,
Dec 10, 2020, 9:33:24 AM12/10/20
to TiddlyWiki
Hi Chris,

This let you have custom editions, plugins, themes, ...
I know some developers  have great stuffs in this regard. You may find some of them on GitHub

It is a pity we have such wonderful stuffs but all are stranded on the web or buried in this forum.

Sometime I put a lot of time to solve some issues, then I realize a developer has solved them few years ago and I find it by chance!!!!

--Mohammad

clutterstack

unread,
Dec 10, 2020, 11:57:46 AM12/10/20
to TiddlyWiki
This let you have custom editions, plugins, themes, ...

Yes, this was such a relief for me with my messy collection of wikis and plugins. I think it should be introduced early in the node.js TW docs. I didn't know what to look for. I was searching for stuff in a config file, or hard-coded in the source.

It is a pity we have such wonderful stuffs but all are stranded on the web or buried in this forum.
 
I think it's getting better(?) But I know what you mean.

Sometime I put a lot of time to solve some issues, then I realize a developer has solved them few years ago and I find it by chance!!!!
 
This is why I find the Google Groups search so frustrating!  I feel myself placing too much hope in the github discussion board...

Best,
Chris

clutterstack

unread,
Dec 10, 2020, 12:05:34 PM12/10/20
to TiddlyWiki
Gah, if I'd read the Installing custom plugins on Node.js tiddler more recently, the information about environment variables is there.

I'm constantly amazed at how much documentation is in the tiddlywiki.com website. I still have a hard time targeting what I'm looking for, but that may just be me.

Chris
Reply all
Reply to author
Forward
0 new messages