How to list all global macros whatever self defined or plugin defined or inbuild defined?

I want to make a global macro. But I worried the the name of the macro may be duplicated to what already defined, so I want to check it.

I search in the advanced search tool filter with the condition [tag[$:/tags/Macro]]

But nothing show out? Why this happened, I use some plugins with some macros that I am sure I have some global macros in my tw. So how to list them all?

Make sure you have the Filter tab highlighted in Advanced Search or this will not work:
[all[tiddlers+shadows]tag[$:/tags/Macro]]

1 Like

You can use the <<dumpvariables>> macro to list all variables/macros:

https://tiddlywiki.com/#dumpvariables%20Macro

3 Likes

One way of course is to simply use it;

<<mymacroname>> or perhaps in case it is just not producing a visible result use <$text text=<<mymacroname>> /> which will expose the macros content.

In fact keep in mind that in many cases it can be fine to redefine a global macro in your local tiddler, or pull it in from another tiddler with \import pagma.

However since you want a global macro you can always choose a name that is very unlikely to be used like adding a prefix eg ori-tiddlername.

I have also build a tool to search for \define in any tiddler. Make sure you include system and shadow tiddlers. between \define and ( you will find the macro name. Ask if you want it.

1 Like