-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allows to use macro references in macro parameters #151
base: master
Are you sure you want to change the base?
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 [email protected]:
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.