(BTW, the syntax for this is about to be improved in the very-soon-to-be-released 5.1.20 version.)
I am actually using 5.1.20 pre release. Can you please point me to the documentation of the to be release version?
Thank you Mat for the details.
I think what I want to do can be achieved by editing $:/core/ui/ListItemTemplate
.
It reads
<div class="tc-menu-list-item">
<$link to={{!!title}}>
<$view field="title"/>
</$link>
</div>
I just need to add
<<tag-pill>>
What I can’t figure out is how to pass the current tag to the tag-pill macro. I have tried
<<tag-pill {{!!tags}}>>
<$macrocall $name="tag-pill" tag=<<__tags__>> />
But they didn’t work. Of course my syntax is incorrect but I can’t figure out the correct one.
What I can’t figure out is how to pass the current tag to the tag-pill macro. I have tried
<<tag-pill {{!!tags}}>>
<$macrocall $name="tag-pill" tag=<<__tags__>> />
<<tags>>
works fine.
It’s the <<tag-pill>>
macro that is not working.
you must surround the macrocall with a listwidget so that the macrocall only deals with one tag at a time.
Can you point me to any example where listwiget is used in this way?
you must surround the macrocall with a listwidget so that the macrocall only deals with one tag at a time.
Can you point me to any example where listwiget is used in this way?
<$list filter="my tiddlers of relevance">
<$link/>
<$list filter={{!!tags}}>
<$macrocall $name=tag-pill tag={{!!title}} />
</$list>
</$list>
Thanks a lot Mat. My issue has been solved.
<div class="tc-menu-list-item">
<$link to={{!!title}}>
<$view field="title"/>
<$list filter={{!!tags}}>
<$macrocall $name=tag-pill tag={{!!title}} />
</$list>
</$link>
</div>
The Locator plugin is made to find related tags easier, it shows the tags in search results as well.
See these images
I was searching for the word diff
and json
. These are common words in the programming world and more than one topics have tiddlers on it. I needed a simple way to tell these tiddlers apart with a glance.
I didn’t need to narrow down my search via tag or open other tiddlers from the tag pill. Just wanted to have a little bit context in the search result that a tiddlers is from which topic.
It’s a powerful plugin.
My take away is that it’s useful for users who have thousands of tiddlers with hundreds of tags in the TW. So far I have only 663 tiddlers and 77 tags, so TW default search is good enough. For now.
I don’t know exactly where, but I seen you earlier, maybe somewhere in the Vim era.
I too recall you from somewhere but can’t put my finger on it. ☺️It’s probably from Vim, perhaps #vim irc channel. I used to be active on it couple of years ago. :)