Re: [tw] Re: Transclusion within a string

2014-11-17 Thread Tobias Beer
Did you try to use $macrocall http://tiddlywiki.com/#MacroCallWidget? How exactly and why would that do the trick? Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails

Re: [tw] Re: Transclusion within a string

2014-11-17 Thread Danielo Rodríguez
Because it allows things like this $macrocall $name=themacro something={{!!title}}/ That is not possible with the normal call. El lunes, 17 de noviembre de 2014 09:05:48 UTC+1, Tobias Beer escribió: Did you try to use $macrocall http://tiddlywiki.com/#MacroCallWidget? How exactly and why

Re: [tw] Re: Transclusion within a string

2014-11-17 Thread Tobias Beer
Ok, so the actual code for Blake to use becomes... $macrocall $name=concatenate string1=my string2={{!!title}}/ Correct? I'd also be interested to know why widgets can use variables and evaluated bits and direct macro calls cannot. Best wishes, Tobias. -- You received this message because

Re: [tw] Re: Transclusion within a string

2014-11-17 Thread PMario
On Monday, November 17, 2014 11:39:16 AM UTC+1, Tobias Beer wrote: Ok, so the actual code for Blake to use becomes... $macrocall $name=concatenate string1=my string2={{!!title}}/ Correct? yes. I'd also be interested to know why widgets can use variables and evaluated bits and direct

Re: [tw] Re: Transclusion within a string

2014-11-17 Thread Jeremy Ruston
I'd also be interested to know why widgets can use variables and evaluated bits and direct macro calls cannot. As I did understand Jeremy from other responses, its mainly a performance decision. It's actually historical. The angle bracket syntax for macros was first implemented early on,

Re: [tw] Re: Transclusion within a string

2014-11-17 Thread Blake Blacksmith
Yes that is the working code. Sorry for not posting it I've been away from my computer. On Mon, Nov 17, 2014 at 5:39 AM, Tobias Beer beertob...@gmail.com wrote: Ok, so the actual code for Blake to use becomes... $macrocall $name=concatenate string1=my string2={{!!title}}/ Correct? I'd

Re: [tw] Re: Transclusion within a string

2014-11-16 Thread Danielo Rodríguez
Hello Blake , This has been discussed several times. You have to use a macro definition. Since I'm on my mobile I can't provide you an example but searching for concatenate in the forum should give you some results. -- You received this message because you are subscribed to the Google Groups

Re: [tw] Re: Transclusion within a string

2014-11-16 Thread PMario
see this post. IMO similar problem. https://groups.google.com/d/msg/tiddlywiki/ChRV6sjQpn4/bCm35_XhGmkJ -m -- 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

Re: [tw] Re: Transclusion within a string

2014-11-16 Thread Blake Blacksmith
I am able to concatenate using a macro two strings for example: \def concatenate(string 1:, string2:) $string1$$string2$ \end concatenate my _car gives me: my_car but when I use a transcluded text: concatenate my {{!!text}} I get: my{{!!text}} instead of the text field's string which is

Re: [tw] Re: Transclusion within a string

2014-11-16 Thread Stephan Hradek
Am Sonntag, 16. November 2014 19:50:59 UTC+1 schrieb Blake Blacksmith: concatenate my {{!!text}} Did you try to use $macrocall http://tiddlywiki.com/#MacroCallWidget? -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this

Re: [tw] Re: Transclusion within a string

2014-11-16 Thread Blake Blacksmith
No I did not and I think thats doing the trick. Thanks! On Sun, Nov 16, 2014 at 2:23 PM, Stephan Hradek stephan.hra...@gmail.com wrote: Am Sonntag, 16. November 2014 19:50:59 UTC+1 schrieb Blake Blacksmith: concatenate my {{!!text}} Did you try to use $macrocall

Re: [tw] Re: Transclusion within a string

2014-11-15 Thread Blake Blacksmith
What is the status of adding transcluded text into strings? I for instance need to transclude a title as part of the tag to search for in a filter. I want to use the title of a tiddler to make a file path link so i have something that boils down to: [[Link|file:./root/{{!!title}}.pdf]] how can

[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek
Does this help? \define mailto(email link) a href=mailto:$email$;$link$/a \end $macrocall $name=mailto email={{!!email}} link=mail me/ -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from

[tw] Re: Transclusion within a string

2014-02-03 Thread Mike
That sort of works, but ... 1) I'd have to include / define that macro in every tiddler where i wanted to use it, right? Is there an easy way to put all my macros in one tiddler and then just include that into other tiddlers? 2) This seems like an incredibly long way to go around for what

[tw] Re: Transclusion within a string

2014-02-03 Thread Mike
Aaaah, this is maddening. It's so close. Suppose I create a tiddler with the fields: x = mike email = {{!!x}} then, amazingly, {{!!email}} displays mike and, weirdly, a href={{!!emai}}link/a creates a link to {{!!x}}. hmm. even weirder, changing the email field to be email = mailto:{{!!x}}

[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek
Am Montag, 3. Februar 2014 15:26:15 UTC+1 schrieb Mike: That sort of works, but ... 1) I'd have to include / define that macro in every tiddler where i wanted to use it, right? Right Is there an easy way to put all my macros in one tiddler and then just include that into other

[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek
Am Montag, 3. Februar 2014 15:26:15 UTC+1 schrieb Mike: That sort of works, but ... Another idea (Can be seen on http://skeeve.tiddlyspot.com check Mike's mail and mailto) tiddler: Mike's Mail email: m...@do.main text: {{!!title||mailto}} tiddler: mailto text: \define mailto(email) a

[tw] Re: Transclusion within a string

2014-02-03 Thread Julie
Le lundi 3 février 2014 15:26:15 UTC+1, Mike a écrit : The $view widget claims it supports templates, but I couldn't get it to work. Not really... the ViewWidget claims that it supports templates *with certain formats*, and in the formats list only the date format seems to work with a

Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Jeremy Ruston
Hi Mike Going back to your original question, consider the example you gave: a href=mailto:$view field=emailclick to email/a At the moment, that doesn't work because the double quotes on the href attribute cause the value to be interpreted as a literal string. The docs point out that we also

Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Mike
Yeah, functionality like you describe, with the quadruple round bracket, would be good for having the flexibility when needed. I thought about it and I wonder if there's a way to just have the parser combine (string literal concatenation) sibling nodes of the parse tree when they're both

Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Mike
I was thinking more about it and tried something but I couldn't get it to work. I tried to update the $fields widget to have an extra parameter $fieldList and change exclude to be a boolean. That way you can specify a list of fields and whether you want ONLY those or all BUT those. This makes