I was checking the timeline Macro (Examples) on the official TW documentation and it works fine there. However, when I import it to my local TiddlyWiki (node.js version) I cannot see anything inside this tiddler.
<<timeline format:"DD/MM/YYYY">><<timeline limit:30 subfilter:"tag[Definitions]" format:DD/MM/YYYY">>Ah, I see... It worked now without generating those buttons. So the $macrocall is a different macro stored in a different tiddler? What would be the procedure to import it to my TW as well so I'll be able to create buttons on my tiddlers as well?
I'm running the official documentation samples now :)Just one curiosity about how to import tiddlers properly... On the official documentation all the tiddlers in $:/editions/tw5.com are the following:
[prefix[$:/editions/tw5.com]] will get all tiddlers that begin with name. Is that right? I've checked this introduction to filter notation on the official documentation and l've seen there's some predefined words that I can use. In my case, I think those filters would be used 99% of the time with the following situations:1- A search that get all tiddlers that have a specific word inside the title ( In a regular expression it'd be something like "^.*word.*$"). Let's say the name of the tiddler is "create icons on tiddlywiki", if I search the word "icons" it'd appear in the list. The [prefix[]] syntax seems to work only with words that are at the beginning and the [title[]] syntax gets tiddlers exactly as they are. Is there additional syntax that I can use with those prefixes?
[search:title[word]] 2- A way of searching tiddlers that have a specific word inside their body instead of their title. I'm assuming that tiddlywiki already has something like that because when I do a simple search on the main page bar I can see that TW differentiates words in the title from words in the body...
[search:text[word]] 3- A way of searching tiddlers that have a specific word inside their body or title.
[search:text,title[word]]4- A way of using the AND logic to filter tiddlers that have two or more words at the same time ( Something like: [prefix[word1]&&[prefix[word2]] )
[search:title[word1]search:title[word2]][search:title[word1]] [search:title[word2]]\define doSearch_showresults()
<blockquote style="overflow-y:auto;max-width:100%;max-height:$(height)$;">
<div class="columns$(cols)$ small nowrap">
<$list filter=<<filter>>><$link/><br></$list>
</div>
</blockquote>
\end <$list filter=<<filter>>><$link/> <$date><br></$list>Wow, this PowerSearch tiddler really simplifies the searches that I can do. It also will help me understand better how to create macros on TW. Thanks for sharing it :)
1- I was looking inside the PowerSearch code. The part that prints the results is this one:\define doSearch_showresults()
<blockquote style="overflow-y:auto;max-width:100%;max-height:$(height)$;">
<div class="columns$(cols)$ small nowrap">
<$list filter=<<filter>>><$link/><br></$list>
</div>
</blockquote>
\endI'd like to display the created date or modification date on this list as well... I think it's just a matter of finding the right variable, like in:<$list filter=<<filter>>><$link/> <$date><br></$list>
<$list filter=<<filter>>>
<$link/> <$view field="modified" format="date" template="0MM/0DD/YYYY" /> <br>
</$list>
2- Is there any way of showing the highlight syntax of the "TiddlyWiki language" to facilitate its development?