how to open all the results after tag filter?

167 views
Skip to first unread message

叶术

unread,
Aug 26, 2020, 11:35:07 AM8/26/20
to TiddlyWiki
hello all,

I want to open all the results after tag filter, so that I can have a quick look.

But now, I can only get a list of title after tag filter.

Is there any solution?

Mark S.

unread,
Aug 26, 2020, 11:47:35 AM8/26/20
to TiddlyWiki
Here's a macro that might help

\define open-tag(tag)
<$button>Open all with tag ~$tag$
<$list filter="[tag[$tag$]]">
<$action-navigate />
</$list>
</$button>

<$list filter="[tag[$tag$]]">

</$list>
\end

<<open-tag "HelloThere">>

TW Tones

unread,
Aug 26, 2020, 8:49:24 PM8/26/20
to TiddlyWiki
叶术

After installing my re-imagine tags package (Not finished) but attached.

You could use a tag pill in the tags or with `<<tag taganme>>`

You will get multiple options appearing on the tag pill including open all and close all.

Regards
Tony
reimagin-tags.json

Miguel Rafael

unread,
Sep 2, 2020, 8:21:26 AM9/2/20
to TiddlyWiki
I was trying to get the button to open all of my tiddlers tagged ONLY Journal but no luck. 

The below macro actually produces a list that excludes the entries for Journal Arte but somehow the button ends up opening them as well... 

Help? :) 

<$button>Open all with tag Journal
<$list filter="[tag[Journal]!tag[Journal Arte]!sort[created]]">
<$action-navigate />
</$list>
</$button>

<$list filter="[tag[Journal]!tag[Journal Arte]!sort[created]]">

</$list>

Mat

unread,
Sep 2, 2020, 12:24:42 PM9/2/20
to TiddlyWiki
@Miguel Rafael

See if using triple quotes around your filter works, ie

<$list filter="""[tag[Journal]!tag[Journal Arte]!sort[created]]""">

<:-)

Brian Radspinner

unread,
Sep 2, 2020, 12:37:44 PM9/2/20
to TiddlyWiki
Which part do you need help with? The code you have has two independent parts to it: a button that opens all the tiddlers with the Journal tag, and a title list of all tiddlers with the Journal tag.
  1. If you only want the button to open tiddlers, delete the second <$list...</$list> by removing the last 3 lines.
  2. If you only want the list of titles, remove the first 6 lines of the <$button...</$button> code.
  3. If you want the list to show the full text of the tiddlers tagged as Journal, add something like: <$transclude mode="block"/><br/><hr/><br/> in the empty second-to-last line.

TW Tones

unread,
Sep 2, 2020, 7:38:52 PM9/2/20
to TiddlyWiki
If you want tiddler titles, only with the tag Journal, and not any which has any other additional tag 

<$list filter="[tag[Journal]]">
   <$list filter="[all[current]get[tags]match[Journal]]" variable=nul>

   </$list>
</$list>

The innerlist tests that the current tiddlers "tags field", which is after all a field as well, only matches Journal.

In this case you do not need to name the tag that it should not have, this is not any additional tag,

Regards
Tony
Reply all
Reply to author
Forward
0 new messages