Eric et al.
Thanks for that; Amazing no matter how long I looked I did not see it.
I went for the wikify because I wrongly though I could not add "(" in the search string. But it works, thanks again.
- "[all[shadows+tiddlers]search:text:literal[\define $macroname$(]]" I added the ( and now the result is only
So now this get's the tiddler(s) I am after with;
- <$list filter="[all[shadows+tiddlers]search:text:literal[\define $macroname$(]] -[[$:/core]]">
Do you think it an ok assumption for the next character to be "(" ?
Now I share back the result;
<$list filter="""[[$macroname$]match[?]]""">
Macro to display more about a given macro, `<<? macroname>>`
</$list>
<$list filter="""[[$macroname$]!match[?]]""" variable=nul>
<$list filter="[all[shadows+tiddlers]search:text:literal[\define $macroname$(]] -[[$:/core]]">
Macro '$macroname$' defined in <$link/>
<$list filter="[all[current]get[text]splitregexp[\n]prefix[\define $macroname$(]removeprefix[\define ]]">
<$text text=<<currentTiddler>>/>
</$list> with
<$list filter="[all[current]enlist{!!tags}]">{{||$:/core/ui/TagTemplate}}</$list><br>
</$list>
</$list>
\end
<<?>><hr>
<<? tag>><hr>
<<? tag-pill-body>>
What do you, or others think?
- It also exposes parameters in the definition
- Is it worthy of inclusion in the standard distribution (one day)?
- Shows how parameter defaults are also exposed eg tree macro
Other possibilities
- Optionally return the full definition, needs to end with the next \define or \end but what if single line last macro?
- Return the tiddlers description is available and perhaps some hidden documentation inside <!-- comments -->
- eg lines beginning with macro name
- Or look up a data tiddler for core macros with additional notes.
Thanks again Eric.
Regards
Tones