How run a procedure from a tiddler not tagged `$:/tags/Global`?

Often, procedures or macros are locally defined in tiddlers that are not tagged $:/tags/Global or $:/tags/Macro. Is there a way to run these from outside that tiddler?

The TW core contains quite a few such procedures (well written, at that) so it would make sense to be able to reuse them. Maybe via some trick like transcluding the tiddler inside some procedure widget or some such?

At the moment I’m interested in some procedures in the Tag Manager.

Thanx.

Rightly.

BUT why does your tag list there in your link ESCHEW all tags starting ‘$’?

IF Taggery is the Grand Opera(tionalism) of TW why is “$” managed-off??

TT

That ain’t my taglist - that’s on tw .com! Still, good you noted in case I reuse the listing so I don’t get confused from the system titles are missing…

You could use \import [[tiddler name]] syntax to use this procedure, check the docs

https://tiddlywiki.com/#Pragma%3A%20\import

2 Likes

Aha! I was expecting disappointment but this might just be it! Thank you.

No. That is the tag manager ($:/TagManager) built-in in all TWs.

IMO a fully liberated TagManager could solve 99 problems of which you aren’t one.

A start …

1 Like

My friend, you fully understand my point. Please don’t off-topic my thread.

Ok. I’ll desist. But the broader picture of Tag handling also is relevant I think.

I will just add along with the \import pragma you can also import such TiddlyWiki script using transclusion as well. There are also other system tags that import such code it more specific parts of the wiki eg; $:/tags/Global/View $:/tags/Global/View/Body not to mention the three legacy $:/tags/Macro tags.

Keep in mind also that such an import just ensures the procedure definitions are available localy in the tiddler, and specificaly loaded into browser memory, so as soon as you use this in more than one place it may just be easier to make it global.

It would also be quite easy to set up a conditional imported / transcluded set of procedure definitions from a list of titles. ie build you own mechanisium to work like a global tag, but on specific tiddler.

1 Like