On Wednesday, June 19, 2019 at 6:29:23 AM UTC+2, Mohammad wrote: ... > But it does not work! >
"it" is not specific enough. ... IMO we could help if the line ends with ? > Furthermore if a macro definea in a tiddler tagged with $:/tags/Macro why > they should again imported using \import pragma? > What will be happened if the $:/tags/Macro removed and only \Pragma used? > TW uses a lot of conventions. System tags like $:/tags/Macro is one of them. It is used in the PageTemplate <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FPageTemplate>tiddler. Which contains: \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] in the 4th line. While PageTemplate is very early in the TW widget tree, there are still several elements outside. eg: the root-widget and the html "document" element, which is No 1. Global shortcuts are activated at TW startup at a time, where PageTemplate doesn't exist yet. .. So they are bound to the "document" element. So if you use macros, that are defined outside the "global keyboard shortcut" tiddler, you'll need to import them. ... BUT be aware, that the line above, is very heavy weight, because it reloads ALL existing macros. ... So \import my-macro-tiddler is the better option here. > Is there any example to give a try on this? > "this" again not specific enough. this ... the global shortcut or this the \import pragma (which does work btw) have fun! mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d5d37444-5b6a-4cc0-9f5e-c2c3617dec62%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

