[tw] Re: Macro with substitution

2018-02-08 Thread 'Mark S.' via TiddlyWiki
You could define the macro globally in it's own tiddler, so it's separate from the rest of the code. Or, as I mentioned, you could do the concatenation inside your JS macro. Have fun -- Mark On Thursday, February 8, 2018 at 7:44:45 AM UTC-8, Tristan Kohl wrote: > > Hi Mark, > > that works,

[tw] Re: Macro with substitution

2018-02-08 Thread Tristan Kohl
Hi Mark, that works, thank you so much for this I would never have come to this by myself. However my guts hurt when I see a macro defined inside a tiddler. I know that this is the way TW works but whenever I develop software I work very hard to separate concerns as much as possible so

[tw] Re: Macro with substitution

2018-02-08 Thread 'Mark S.' via TiddlyWiki
Whenever you need to concatenate, you almost need a helper macro. Something like this might work: \define myfilter() [tag[action]hive[$(title)$]] <$vars title={{!!title}}> <$macrocall $name=mymacro filter=<> columns="title date text" columns2="UID Date Notes"/> Of course, I'm just guessing