How to get a result from a filter search with count which can be clicked showing the list of tiddler found?

I am looking for any solution that could display the result of a filtered search where the number can be clicked and the relevant tiddlers can be opened from a list. Right now, when I do a filter search with count I get only the number but not a list of tiddlers that were found.

Many years ago TagGridPlugin by Eric and/or macro by Jed (?) could do the cross-table of filtered tags where the resulting numbers could be clicked at. I have found this TiddlyWiki5 TagGrid — but it does not seem to work (properly) in TW 5.3.6.

This function was really useful but today nobody seems to be in need of this. So maybe there is some obvious way how to do it in the newest TW5 which I am not aware of. Can someone point me in the right direction?

It’s probably overkill but a search via filter that returns results plus the count is there in Wrangler. I’m still updating the documentation.

One way would be to hide them behind an HTML <details>:

<details>
<summary>
count: <$text text={{{ [tags[]count[]] }}} />
</summary>

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

* <<tag>>
</$list>
</details>

I have something I call filter pills, I hope to publish soon. it works like a tag pill and has various options to list and act on the resulting titles.

does that sound appropriate?

2 Likes

Maybe TiddlyTools TagCloud will be of use?

While it doesn’t generate a “tag grid”, it does produce a “cloud” of tag pills for a selected subset of tags. You can also enter or select a filter to limit the set of tiddlers that are considered.

Each tag pill shows the number of tiddlers with that tag, and is also scaled based on that number, so that tag pills with more tiddlers are displayed using a proportionately larger font. Clicking a tag pill shows the usual popup list of tiddlers with that tag, with one extra feature: the popup is scrollable, so that really big sets of tiddlers don’t display a very long popup.

There are checkbox options to show tiddlers or shadows, with or without untagged tiddlers, and you can sort the cloud tag display by name or count. There are also advanced “TagCloud settings” (the gear icon), which let you adjust the tag pill scaling and “group size” (how many tiddlers are used to determine when to increase the tag pill scaling).

enjoy,
-e

2 Likes

oh this is great. How can I get this globally? (ie, not just in this tagcloud? (I have a tagcloud though different implementation I found somewhere, and has normal tag menu popup)

Give this a try:

In a tiddler tagged with $:/tags/Stylesheet:

.tc-drop-down .tc-tagged-draggable-list {
   display:inline-block; width:100%; max-height:30vh; overflow:auto;
}

enjoy,
-e

2 Likes

Very nice, while not exactly what I was looking for, this can also be very useful. Thank you!

As always with this group of people - inspirational. This is cool, especially the interactive mode when searching for fields. I already have an idea how to use this for a live dashboard for my assets. Thank you!

Yes, I have been using a lot of your code, @EricShulman, so I know the TagCloud can be of great use. And I use it as well, in some places.

Anyway, I really appreciate your response which, unfortunately, also means there is no direct replacement for tagGrid Plugin in TW5 but the one I found (which is probably abandoned and I can’t make it work the way I need). I will need to find something else.

But back in the days, your plugin served me fantastically to create dashboards like this:

.

Thank you,

AS

1 Like

Sorry, I have missed this… yes, this could be interesting, I was thinking of some form of tag pills but I couldn’t come up with anything. I need examples, unable to code something on my own.

AS

This seems to work. It should probably be refined to e.g not repeat the filter, etc.

<table>
<tr><td></td>
<$list filter='[is[tiddler]!is[system]tags[]]'>
<td><<currentTiddler>></td>
</$list>
</tr>

<$list filter='[is[tiddler]!is[system]tags[]]' variable=row>
<tr>
<td><<row>></td>
<$list filter='[is[tiddler]!is[system]tags[]]' variable=col>
<td>
<$list filter='[is[tiddler]!is[system]tag<row>tag<col>]'>

</$list>
</td>
</$list>
</tr>
</$list>
</table>

By the way, possibly this may be of relevance or of inspiration.

@TW_Tones, your filter-pill solution is a gem — a must-install for pretty much every serious wiki in which I do regular work.

I would love to see it hosted somewhere official, rather than trying to discern which is the most recent downloadable JSON, searching through threads here.

In case anyone browsing this thread wants to see it in action (rather than downloading, dragging to wiki, and poking around), feel free to experiment with the filter pills in action here.

1 Like

I like this, and I might be able to use it, looks simple but powerful.
Thank you, @twMat!
AS

I am in the process of reviewing my filter-pill macro and turning it into a plugin. Here it is in its current state if you want to try. Please message me privatly if you have feedback on filter-pills.

filter-pills.json (21.9 KB) This will be superceeded in the near future.