For me the JavaScript version of the macros is working globally.
You can find an example at :

http://tw5magick.tiddlyspot.com/

El viernes, 24 de enero de 2014 19:44:21 UTC+1, Michael Herrmann escribió:
>
> Hello,
>
> In general I was delighted to see that in TW5 we have some kind of macros. 
> Unfortunately the scope of macros is mainly the current tiddler. That means 
> if I have a universally usable macro I have to copy and paste it to every 
> tiddler where I want to use it. For me this is almost no benefit. (Maybe I 
> do not recognize some important aspect that leverages this characteristics.)
>
> When I read the documentation tiddler I happily misunderstood the last 
> part of the sentence:
>
> Macros are available to the tiddler that defines them, plus any tiddlers 
> that it transcludes.
>
> At first glance that sounded to me as if I could prepare a tiddler with 
> all my macros and only transclude that tiddler wherever I like use one of 
> those macros.
>
> Unfortunately this was a misunderstanding and the use is just the other 
> way round :-( I.e. if I have a tiddler with some macro and I transclude 
> another tiddler, then the macro is available in this transclusion. Sounds 
> interesting, but currently no use case comes to my mind.
>
> I know that there is one tiddler that exports it's macros globally: 
> $:/core/ui/pageMacros. I see these drawbacks:
>
> (1) The choice between "not available elsewhere" and "available 
> everywhere" is a too big step. I would prefer a more fine grain granularity.
>
> (2) This system tiddler is under risk to be overwritten when upgrading TW5.
>
> So, my question is: wouldn't it be very useful to widen the scope of 
> macros somehow? Perhaps by some kind of _import_ mechanism?
>
> regards
>  Michael
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to