Discussion:
[tw] Re: [TW5] Open all the tiddlers with a particular tag
David Moore
2015-03-02 21:15:48 UTC
Permalink
Hi, I am having the same issue. In classic you could simply click a tag
and either open a specific matching tiddler, or "open all" which gave you
everything that matched.

I used this more than anything given I categorised everything with tags.

However in the new version the feature has gone, and it seems from the
above quite a lot of hacking and code to resolve!

http://tiddlywiki.org/tag

In the above link it says that you can still open all tiddlers tagged to a
given tag, however I can't see how.

Any news since this last post, or any simple step by step instructions for
implementing the above?

Thanks

Dave
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
David Moore
2015-03-02 21:44:02 UTC
Permalink
Hi again, I tried to use the "Demo for Jon".

I dragged the makelist widget to my wiki, and it showed me an import
dialogue, which I followed.

I then copied the code into a new widget, and I get "Undefined widget
'makelist'" appearing...

I don't know what else I am supposed to do to "install" a widget?
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jed Carty
2015-03-02 22:15:27 UTC
Permalink
David,

Currently there isn't any simple way to open up all tiddlers with a given
tag, but there is one in the prerelese of the next version
<http://tiddlywiki.com/prerelease/> and will be in it when version 5.1.8
comes out (version here in the sense of an update or revision, not version
in the sense of tiddlywiki classic vs tiddlywiki 5).

You can easily list all tiddlers with a given tag using the list widget
<http://tiddlywiki.com/#ListWidget> and filters
<http://tiddlywiki.com/#Filters>. I know this doesn't actually give you
what you want, but it may help until version 5.1.8 is released, which will
hopefully be very soon.

If you click on a tag that a tiddler is tagged with, or in the tag manager
on the more tab of the sidebar menu, than you will also get a list of
tiddlers that have that tag.

I have added a tiddler that lets you open all tiddlers with a chosen tag to my
experimental tools site
<http://ooktech.com/jed/ExampleWikis/Version518Fun/#Open%20All%20Tiddlers%20with%20a%20Given%20Tag>,
but at the moment it requires the prerelease.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
David Moore
2015-03-03 06:56:06 UTC
Permalink
Hi, it would be nice to get this working sooner rather than later, so I
tried again with Matabele's answers.
I dragged the makelist widget again, (after complete restart) and it said
it would not import because version older than existing version (they were
actually the same). So I do have it installed, and I see under More ->
System that I have plugins/matabele/makelist and makelist.js listed as two
items.

However I still get the "undefined widget makelist". Is there something
else you need to do when installing a widget?
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
RichardWilliamSmith
2015-03-03 10:34:20 UTC
Permalink
Hi David,

I made an example of how I have used 'makelist' to do this

https://dl.dropboxusercontent.com/u/83055414/tiddlywiki.html

Regards,
Richard

PS: because I will remove the file in future, I'll copy this here, for the
sake of the thread

Once you have Matabele's makelist widget installed (drag this link if you
don't)...
$:/plugins/matabele/makelist
<file:///Users/richardsmith/Desktop/tiddlywiki.html#%24%3A%2Fplugins%2Fmatabele%2Fmakelist>...you
can write code like this to make a button that opens all the tiddlers with
a particular tag (and closes the others)
<$makelist tiddler="$:/StoryList" set="!!list" filter="[tag[About]]">
<$button class="tc-btn-text" message="tw-make-list">
Open About
</$button>
</$makelist>
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
David Moore
2015-03-04 08:34:30 UTC
Permalink
Thanks for that, really appreciate it.
It seems that I have been doing it right, so I don't know what's wrong.

the plugin is installed, as it won't let me drag the link there again
however I still get makelist not defined

See picture of more -> system, import, plugin and code here.

http://imgur.com/YftPIfs

Perhaps the plugin is installed incorrectly, although not sure how that can
happen. Does it have any dependencies?

any further help greatly appreciated.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
David Moore
2015-03-04 08:40:20 UTC
Permalink
Right, I deleted the plugin tiddler, and then dragged again, and this time
it works, so problem solved.

Thanks for all your help everyone!
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Felix Küppers
2015-03-03 10:57:12 UTC
Permalink
Hi Jon,

Maybe another simple idea that should work (haven't tested it though)

1. Backup "$:/DefaultTiddlers" value to another tiddler called
"$:/DefaultTiddlers.bak"
2. change tags field of "$:/DefaultTiddlers" to "[tag[mytag]]"
3. (optionally close all tiddlers in river via "tm-close-all-tiddlers")
4. initiate the "tm-home" message
5. all tiddlers with that tag will open
6. Restore "$:/DefaultTiddlers" value from "$:/DefaultTiddlers.bak"

-Felix
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
r***@gmail.com
2016-06-06 07:48:07 UTC
Permalink
Hello together,

I wanted to ask if there has been progress on the 'clickable tags' request
here. I am rather new in using TiddlyWiki, but I miss this particular tool
really much, as I don't want to open all tagged Tiddlers one by one. I am
searching for an option to open all tagged Tiddlers at once by clicking on
the tag. Using filters, I just got another list of links, but no automated
opening of the Tiddlers. In a previous post it was mentioned that this
option will be available with version 5.1.8, which is not actual anymore.
Did the feature got lost again, or am I missing something?

With kind regards,
D.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/16543447-9b58-41d1-9d6b-fadb08492f5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2016-06-06 09:13:09 UTC
Permalink
Post by r***@gmail.com
Hello together,
I wanted to ask if there has been progress on the 'clickable tags' request
here. I am rather new in using TiddlyWiki, but I miss this particular tool
really much, as I don't want to open all tagged Tiddlers one by one. I am
searching for an option to open all tagged Tiddlers at once by clicking on
the tag. Using filters, I just got another list of links, but no automated
opening of the Tiddlers. In a previous post it was mentioned that this
option will be available with version 5.1.8, which is not actual anymore.
Did the feature got lost again, or am I missing something?
Hi rauh.. / D, I just put together this simple macro. Maybe it's enough?

http://openalltagged.tiddlyspot.com/

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/8cdfd2a4-de42-45a7-84ba-d5e6a6481798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
cmari
2016-06-07 02:44:32 UTC
Permalink
I wanted the possibility to "open all" [tagged tiddlers] when I click on a
tagpill, so I did the following:
In the shadow tiddler $:/core/ui/TagTemplate
after the line that consists only of <hr>
insert:
<$button class="tc-btn-invisible"><$list
filter="[all[current]tagging[]]"><$action-navigate $to=<<currentTiddler>>
/></$list>Open All</$button><hr>

cmari
Post by Mat
Post by r***@gmail.com
Hello together,
I wanted to ask if there has been progress on the 'clickable tags'
request here. I am rather new in using TiddlyWiki, but I miss this
particular tool really much, as I don't want to open all tagged Tiddlers
one by one. I am searching for an option to open all tagged Tiddlers at
once by clicking on the tag. Using filters, I just got another list of
links, but no automated opening of the Tiddlers. In a previous post it was
mentioned that this option will be available with version 5.1.8, which is
not actual anymore. Did the feature got lost again, or am I missing
something?
Hi rauh.. / D, I just put together this simple macro. Maybe it's enough?
http://openalltagged.tiddlyspot.com/
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/94ac47ff-0f99-4cad-86b1-277c91f977e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thomas Elmiger
2016-06-07 20:51:19 UTC
Permalink
This is one of these things: you realise, how much you missed it, when you
use it. It went directly in my tag pill menu – at the bottom though (insert
just before the last div).
Thank you all!
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/a79e05a4-396f-4832-a1bf-5eba65d8e15a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Maaaaaaaaaaaaaaartin
2016-07-14 10:33:47 UTC
Permalink
This is incredibly useful, thanks! One question though: how are the
tiddlers sorted? Ideally, I would like to have them in reverse
chronological order (of creation date)
is it possible? Thanks! Martin
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/24768236-2890-4090-bbe4-47a82a1d1ba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2016-07-15 22:37:15 UTC
Permalink
Hello together,
I tried to modify Mats solution adding an Input-field linking to a field
called sesame...(Supposing that sesame contains the Tag to open...):

\define openalltagged()
<$set name="label" value={{!!sesame}}>
<$edit-text field="sesame"/>
<$button class="openalltagged">
open all tagged $label$
<$list filter="[tag[$label$]]" variable="tid">
<$action-navigate $to=<<tid>>/>
</$list>
</$button>
</$set>
\end

<<openalltagged>>

Unfortunately I do not get the Variable to work. This is a repeating
question for me: where in the code do I have to set the name to make it
work.

8-?
Jan
Post by r***@gmail.com
Hello together,
I wanted to ask if there has been progress on the 'clickable tags'
request here. I am rather new in using TiddlyWiki, but I miss this
particular tool really much, as I don't want to open all tagged
Tiddlers one by one. I am searching for an option to open all
tagged Tiddlers at once by clicking on the tag. Using filters, I
just got another list of links, but no automated opening of the
Tiddlers. In a previous post it was mentioned that this option
will be available with version 5.1.8, which is not actual anymore.
Did the feature got lost again, or am I missing something?
Hi rauh.. / D, I just put together this simple macro. Maybe it's enough?
http://openalltagged.tiddlyspot.com/
<:-)
--
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
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/8cdfd2a4-de42-45a7-84ba-d5e6a6481798%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8cdfd2a4-de42-45a7-84ba-d5e6a6481798%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/5789659B.4030100%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
Matabele
2016-07-16 08:10:57 UTC
Permalink
Hi


The $action-listops widget (now included in the core) may be used for this
functionality, using the $filter= attribute option:


\define getTiddlers()
<$button class="btn-invisible">$(tag)$
<$action-listops $tiddler="$:/StoryList" $field="list" $filter=
"[tag[$(tag)$]]"/>
</$button>
\end

Note: This doesn't update the history

regards
Hi
I'd find it really useful to be able to simultaneously open all the
tiddlers with a particular tag and then close them all again.
Is that already possible?
Thanks
Jon
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/6d3a0b52-855f-4084-81b7-20bc0a74ca2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stanley T
2017-07-23 22:21:24 UTC
Permalink
Hi Matabele and all searching for the same question.

Thanks for the posted code! I would recommend before trying to use it and
getting frustrated (like me) to check out two links:

http://tiddlywiki.com/static/ListWidget.html

http://tiddlywiki.com/static/Introduction%2520to%2520filter%2520notation.html

For a couple of Tiddlers that I have tagged Journal, I change Mark's
notation to this:
<$button class="btn-invisible">$(tag)$
<$action-listops $tiddler="$:/StoryList" $field="list" $filter=
"[tag[Journal]]"/>
</$button>
Post by Matabele
\define getTiddlers()
<$button class="btn-invisible">$(tag)$
<$action-listops $tiddler="$:/StoryList" $field="list" $filter=
"[tag[$(tag)$]]"/>
</$button>
\end
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/6c88ff57-4b32-4c3e-acee-0d35a1d095b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Christopher Arcadia
2017-07-26 04:41:36 UTC
Permalink
Though I might add my own macros for opening & closing tiddlers based on
tags:

<<openByFilter "[tag[mytag]]">>

<<closeByFilter "[tag[mytag]]">>



\define closeByFilter(filter)
filter: $filter$
<$button>
close filtered tiddlers
<$list filter=$filter$>
<$action-sendmessage $message="tm-close-tiddler"/>
</$list>
</$button>
\end

\define openByFilter(filter)
filter: $filter$
<$button>
open filtered tiddlers
<$list filter=$filter$>
<$action-navigate $to={{!!title}}/>
<$action-sendmessage $message="tm-unfold-all-tiddlers"/>
</$list>
</$button>
\end
Hi
I'd find it really useful to be able to simultaneously open all the
tiddlers with a particular tag and then close them all again.
Is that already possible?
Thanks
Jon
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/c76c99ec-872e-4a65-af60-5dd9be40d06e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...