TW5: list of available macros and where they are defined

214 views
Skip to first unread message

Tobias Beer

unread,
Nov 14, 2014, 7:44:41 AM11/14/14
to tiddl...@googlegroups.com
Hi everyone,

Perhaps I'm missing something, I would like to see an auto-generated list of...
  • all available macros
    • maybe even distinguising global <> local
  • a link to the tiddler in which they are defined
  • a(n optional) short-description for each
Possible, how? => Github ticket?

Tobias.

Tobias Beer

unread,
Nov 14, 2014, 7:54:31 AM11/14/14
to tiddl...@googlegroups.com
Here's the background of me asking. As there is no discernible "this macro doesn't even exist" notification, how am I to know if an empty tw5 even has a "wikitext-example" macro ...or where to find it if I were to search for it in tw.com? ...which gives me all the codebits where it's used, rather than defined or documented :)

Which brings me to thinking that maybe a "keywords" or "sticky" field may be highly useful to indicate will make tiddlers more prominent in the search results when the search term is contained in the field value of this tiddler, e.g. the "keywords" field for the tiddlers defining or documenting the "wikitext-example" macro would contain "wikitext-example".

Best wishes, Tobias.

Stephan Hradek

unread,
Nov 14, 2014, 7:55:01 AM11/14/14
to tiddl...@googlegroups.com
Links to all tiddlers having macros:

<$list filter="[all[tiddlers]regexp:text[(?m)^\\define\s+\w+\s*\(]]">

</$list>


Evolena

unread,
Nov 14, 2014, 8:04:23 AM11/14/14
to tiddl...@googlegroups.com
Only for finding global macros, you can use some more precise filters:
[all[shadows]module-type[macro]] -> all core JS macro
[all[shadows]tag[$:/tags/Macro]] -> all core wikitext macros
[tag[$:/tags/Macro]] -> all user defined wikitext macros

A "description" field exist, but it is not used for core macro at the moment.

Tobias Beer

unread,
Nov 14, 2014, 8:08:01 AM11/14/14
to tiddl...@googlegroups.com
Links to all tiddlers having macros:

<$list filter="[all[tiddlers]regexp:text[(?m)^\\define\s+\w+\s*\(]]">

</$list>


Thanks, Stephan.

However, that doesn't seem to give me any available core macros, let alone their names ...which is what I'm really after, not just the title of a tiddler containing a macro.

Best wishes, Tobias.

PMario

unread,
Nov 14, 2014, 8:10:36 AM11/14/14
to tiddl...@googlegroups.com
Have a look at:

AdvancedSearch: Shadows / System  and search for: $:/tags/Macro

-m

Stephan Hradek

unread,
Nov 14, 2014, 8:17:59 AM11/14/14
to tiddl...@googlegroups.com


Am Freitag, 14. November 2014 14:08:01 UTC+1 schrieb Tobias Beer:

However, that doesn't seem to give me any available core macros,

See reply from others. This really is just for finding tiddlers (potentially) containing macros.
 
let alone their names ...which is what I'm really after, not just the title of a tiddler containing a macro.

For this we'd need some more filters like search-regexp filtering with brackets or split and replace.

Maybe something for me when my tiddlyspots are ipdated.

Tobias Beer

unread,
Nov 14, 2014, 8:18:34 AM11/14/14
to tiddl...@googlegroups.com
Thanks, very helpful, Evolena!

Has anyone yet set up a TiddlySpace to collaboratively collect all these codebits / solutions?

I find it very important for the community to bring these things together rather than have everyone do their own micro-references. That's fine, too, yet not so accessible, unless one asks around here. ^_^

I mean, I'd rather put it into a collaborative collection than starting to gather my own tidbits like here...

http://tb5.tiddlyspot.com/#Macro%20Lists

Tobias.

Tobias Beer

unread,
Nov 14, 2014, 8:33:57 AM11/14/14
to tiddl...@googlegroups.com
Anyhow, I think such an overview with macro details and their origins / scope would be a great ammendment to the control-panel to show installed features and also give a quick reference.

Best wishes, Tobias.

Tobias Beer

unread,
Nov 14, 2014, 8:34:41 AM11/14/14
to tiddl...@googlegroups.com
Quite interesting to post the contents of...

http://tb5.tiddlyspot.com/#Macro%20Lists

...into a new tiddler on tiddlywiki.com.

Best wishes, Tobias.

Ton Gerner

unread,
Nov 14, 2014, 8:37:09 AM11/14/14
to tiddl...@googlegroups.com
Hi Tobias,

Maybe you are interested in my newest guide: TW5 Exploration. It lets you explore the WikiText core tiddlers like the UI shadow tiddlers, code snippets, macros, themes and so on in an easy way.

Cheers,

Ton

Tobias Beer

unread,
Nov 14, 2014, 8:41:38 AM11/14/14
to tiddl...@googlegroups.com
Thanks Mario,

Btw. I was hoping to display both the code and the rendered result of a macro tiddler in another tiddler without duplicating the macro tiddler contents, how is the best way to do it? See..

http://tb5.tiddlyspot.com/#New%20Tiddler%20From%20Form

Best wishes, Tobias.


Tobias Beer

unread,
Nov 14, 2014, 8:44:01 AM11/14/14
to tiddl...@googlegroups.com
Maybe you are interested in my newest guide: TW5 Exploration. It lets you explore the WikiText core tiddlers like the UI shadow tiddlers, code snippets, macros, themes and so on in an easy way.

Yes, but where? ;-)

Best wishes, Tobias.

Ton Gerner

unread,
Nov 14, 2014, 8:48:11 AM11/14/14
to tiddl...@googlegroups.com
Hi Tobias,

Ough, see [1] (or [2])

Cheers,

Ton

[1] http://tw5exploration.tiddlyspot.com/
[2] http://tongerner.tiddlyspot.com/

Tobias Beer

unread,
Nov 14, 2014, 8:55:54 AM11/14/14
to tiddl...@googlegroups.com

Thanks Ton,

That is very useful, also as an elaborate example for how to showcase codebits in a categorized manner.

Best wishes, Tobias.

Tobias Beer

unread,
Nov 14, 2014, 9:01:03 AM11/14/14
to tiddl...@googlegroups.com
 
Oh, also lot's of interesting tidbits, thanks.

Dmitry Sokolov

unread,
Jan 12, 2017, 10:48:50 PM1/12/17
to TiddlyWiki
Ton, Tobias, others,
All the macros are being collected here:
http://confocal-manawatu.pbworks.com/w/page/114432877/TiddlyWiki%20Macros%20Collections
The other resources are up on LiM Taxonomy.
Cheers,
Dmitry
Reply all
Reply to author
Forward
0 new messages