allows to use macro references in macro parameters#151
allows to use macro references in macro parameters#151tobibeer wants to merge 1 commit intoTiddlyWiki:masterfrom tobibeer:transclude-macros
Conversation
Using the following syntax this change allows to pass macro syntax within macro parameters as follows... ``` <<tiddler Template with: '<<tag Foo>+>'>> ``` All '>+>' are be replaced with '>>' BEFORE further processing. In fact, this will work for any macro, e.g. ``` <<foo "<<bar>+>" >> ```
|
hmmm ... what if I want to do: |
|
How? My regexp skills certainly are not at this level of debate. Anybody willing and able to translate this into plain language... ? Being able to directly do any of... or even... ...would definitely be better. Although, knowing that a pragmatic Theoretically, you could even do... ..and also replacing Surely, things like these might add up to a number of (perhaps) undesireable quirks. But perhaps they really don't? It definitely seems more intuitive than some |
|
@Jermolene ... did you try to let the macro formatter digest |
|
The macro parser in TW classic isn't sophisticated. It assumes that the Best wishes jeremy On Tue, Oct 15, 2013 at 9:46 PM, Mario Pietsch notifications@github.comwrote:
Jeremy Ruston |
|
@tobibeer there is a syntax that can handle your usecase. The only problem is, that for tiddlyspace you'll need to set: So probably your pull request would be a better solution ?? |
|
Hi Mario, I think there are more problems with that than taking the 'hacking TiddlySpace' barrier... the evaluated parameter syntax simply is mostly too complicated for your everyday user and I think, rightfully so. Using macros and transclusions can be simpler and I think my example definitely is. The question for me is, need I wrap this in a plugin or 'core-hack', or will it actually improve things as a core feature. I don't think the overhead is all that dramatic, even with the code allowing a sequential replacing of... Tobias. |
|
@ericshulman ... what do you think? |
|
Another pro for this solution is that (with a few bits of additional code) it can support this... Current evalled parameters cannot, afaict. I know, it's somewhat exotic... but perhaps it actually isn't all that much. |
|
Hello guys, Note2: the Idea: we can extend the macro syntax with an "escaping zone", which will work like this: And escaping zone will be added to the The tripple Note3: alternative delimeters for EZ can be used. For the particular case of Note4: when determining EZ after as EZ ends when the number of appeared |
Using the following syntax this change allows to pass macro syntax
within macro parameters as follows...
All '>+>' are be replaced with '>>' BEFORE further processing.
In fact, this will work for any macro, e.g.