Filter tipped: Announcing TiddlyWiki 2.2.6

84 views
Skip to first unread message

Jeremy Ruston

unread,
Oct 18, 2007, 12:49:41 PM10/18/07
to Tiddl...@googlegroups.com
I'm delighted to announce the release of revision 2.2.6 of TiddlyWiki:

http://www.tiddlywiki.com/

This is mostly a minor bug fix release:

http://trac.tiddlywiki.org/wiki/History

The only new feature is fairly smallish: the beginnings of what we're
calling the tiddler filtering mechanism. It's a simple declarative
syntax that allows you to specify a list of tiddlers. The simplest
tiddler filter list is just a list of tiddler titles:

HelloThere [[Hello World]] AnotherTiddler

We've extended the double bracket syntax to allow filtering by tag. For example:

HelloThere [tag[systemConfig]]

That example returns a list consisting of the tiddler called
HelloThere followed by a list of all the tiddlers tagged
'systemConfig'. We plan to extend the syntax to allow more
sophisticated filtering and sorting in the future.

Tiddler filter lists are currently usable in DefaultTiddlers and in
the 'TiddlerFilter' field of a systemServer tiddler.

As usual, this release is the result of an awful lot of work by many
people in the community, submitting bug reports, patches, suggestions
and general feedback. My thanks go to everyone who's helped.

Cheers

Jeremy

--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com

Gam

unread,
Oct 18, 2007, 3:30:18 PM10/18/07
to TiddlyWiki
Congrats to all!
You people don't get to hear all the tidldywiki user cheers, but we do
appreciate ALL your efforts!

Way to go and whoopee!

Saq Imtiaz

unread,
Oct 18, 2007, 4:59:25 PM10/18/07
to Tiddl...@googlegroups.com
Nice work Jeremy!
Cheers,
Saq

PS: What's next? 2.2.7 or 2.3?
--
TiddlyThemes.com ( http://tiddlythemes.com ) : a gallery of TiddlyWiki themes.
TiddlySnip ( http://tiddlysnip.com ) : a firefox extension that turns TiddlyWiki into a scrapbook!
LewcidTW ( http://tw.lewcid.org ) : a repository of extensions for TiddlyWiki

Simon Baird

unread,
Oct 18, 2007, 8:41:38 PM10/18/07
to Tiddl...@googlegroups.com
On 10/19/07, Jeremy Ruston <jeremy...@gmail.com> wrote:

Tiddler filter lists are currently usable in DefaultTiddlers...


Nice. Here's a little how-to on this feature:


Tag Based Default Tiddlers (with handy checkbox control)

Part 1 (Tag Based Default Tiddlers)
1. Start with a 2.2.6 TW
2. In DefaultTiddlers put this:

[
tag[startup]]

Part 2 (handy checkbox control)
3. Import ToggleTagPlugin from http://mptw.tiddlyspot.com/empty.html
4. Save, reload
5. Edit ViewTemplate
6. Replace the toolbar div with this:

<div class='toolbar'>
  <span macro="toggleTag startup" style="padding-right:2em;"></span>
  <span macro='toolbar closeTiddler closeOthers +editTiddler > fields syncing permalink references jump'></span>
</div>

7. Try it out by checking the checkbox on a tiddler, then saving and reloading.


I have a demo here:
http://simontest-226.tiddlyspot.com/


Simon.


Ps, 2.2.6 now available on tiddlyspot.

--
simon...@gmail.com

Saq Imtiaz

unread,
Oct 23, 2007, 11:42:12 AM10/23/07
to Tiddl...@googlegroups.com, TiddlyWikiDev
Actually there is another undocumented feature in TiddlyWiki 2.2.6.

The list macro now supports the filter syntax, so you can use it for listing tiddlers by tags. I just wrote a short blurb on it here: http://lewcid.org/2007/10/23/how-to-list-tiddlers-by-tags-the-filter-tipped-way/

Reading about the filter syntax inspired me to extend the list macro to use it, but when I opened up the core code, I realized someone had beat me to it! So who is it I should be mad at? Jeremy or Martin? ;)

Great work guys.
Cheers,
Saq

PS: The bugs and suggestion for extending the syntax and the filterTiddlers function have been forwarded to Martin already.

On 10/18/07, Jeremy Ruston <jeremy...@gmail.com> wrote:

Jeremy Ruston

unread,
Oct 23, 2007, 12:03:10 PM10/23/07
to Tiddly...@googlegroups.com, Tiddl...@googlegroups.com
Oops, that was me, pair-coded with Martin sitting next to me, and then
just keeping up to my normal standards of documentation failure.

But it was a fun feature to add, kind of showed that we were on the
right track with our implementation of filtering.

Cheers

Jerm

zygosis

unread,
Nov 7, 2007, 5:43:34 AM11/7/07
to TiddlyWiki
I'm trying the undocumented feature <<list filter [tag[projects]]
[tag[work]]>> to list all work projects. But I get a list of all
tiddlers tagged 'projects' not just those with both tags. Any advice?

Using TW 2.2.6

Thanks

David

Saq Imtiaz

unread,
Nov 7, 2007, 6:19:37 AM11/7/07
to Tiddl...@googlegroups.com
Try this:


<<list filter "[tag[projects]] [tag[work]]">>

The macro currently treats the entire filter expression as one parameter, so it needs to be wrapped in quotes.

Saq
--
Tiddly Learning ( http://lewcid.org ) : TiddlyWiki news, plugins, themes and educational usage

David Keltie

unread,
Nov 7, 2007, 6:39:28 AM11/7/07
to Tiddl...@googlegroups.com
Thanks for your reply. This is strange. Opened TW to do your amends
and found all is fine i.e. without the quotes. It didn't work
yesterday!

Mmmmm

David

hsv.nathan

unread,
Nov 7, 2007, 9:44:31 AM11/7/07
to TiddlyWiki
Turns out you need a space between the two tag portions.

The following will list all tiddlers with the tag projects, and
additionally all tiddlers with the work tag.

<<list filter [tag[projects]][tag[work]]>>


The next one will only list tiddlers containing both tags.
Notice the space b/w them in this one.

David Keltie

unread,
Nov 8, 2007, 7:42:06 AM11/8/07
to Tiddl...@googlegroups.com
Aaaah. That's it.

Thanks

David

theDimsumKid

unread,
Nov 17, 2007, 7:07:32 AM11/17/07
to TiddlyWiki
I've been reading this thread and am intrigued. Can this filter be
applied using some form of graphical interface? I'm thinking like the
del.icio.us filtering system where you click on a "+" to add a tag to
your filter criterea.

I know it's still early days, but if a graphical system that allows
you to browse your tiddlers by tag existed, TW would be the killer app
for organising collections. I really want this so I can begin
organising my offline lfe (vinyl, dvds, books).

On Nov 8, 12:42 pm, "David Keltie" <david.kel...@gmail.com> wrote:
> Aaaah. That's it.
>
> Thanks
>
> David
>
> On Nov 7, 2007 2:44 PM, hsv.nathan <nathan.stew...@mchsi.com> wrote:
>
>
>
> > Turns out you need a space between the twotagportions.
>
> > The following will list all tiddlers with thetagprojects, and
> > additionally all tiddlers with the worktag.
>
> > <<listfilter[tag[projects]][tag[work]]>>

Martin Budden

unread,
Nov 19, 2007, 10:24:39 AM11/19/07
to Tiddl...@googlegroups.com
Actually the second expression <<list filter [tag[projects]]
[tag[work]]>> will just list tiddlers tagged with projects, since the
space delimits the parameters to the list filter.

As Saq mentions, to get tiddlers tagged with projects OR work use:

<<list filter "[tag[projects]] [tag[work]]">>

There is currently no way to list tiddlers tagged with (eg) projects AND work.

Martin

jotarp

unread,
Nov 22, 2007, 3:00:28 AM11/22/07
to TiddlyWiki
Try this ForEachTiddlerPlugin hack :
http://jotarp.googlepages.com/RecetarioDeCocina.html
Sorry, in spanish.

theDimsumKid

unread,
Nov 26, 2007, 5:41:05 PM11/26/07
to TiddlyWiki
That is just what I want! - how can I integrate this to a standard
tiddlywiki installation?

On Nov 7, 11:39 am, "David Keltie" <david.kel...@gmail.com> wrote:
> Thanks for your reply. This is strange. Opened TW to do your amends
> and found all is fine i.e. without the quotes. It didn't work
> yesterday!
>
> Mmmmm
>
> David
>
> On Nov 7, 2007 11:19 AM, Saq Imtiaz <lew...@gmail.com> wrote:
>
> > Try this:
>
> > <<listfilter"[tag[projects]] [tag[work]]">>
>
> > The macro currently treats the entirefilterexpression as one parameter, so
> > it needs to be wrapped in quotes.
>
> > Saq
>
> > On Nov 7, 2007 11:43 AM, zygosis <david.kel...@gmail.com> wrote:
>
> > > I'm trying the undocumented feature <<listfilter[tag[projects]]
> > > [tag[work]]>> to list all work projects. But I get a list of all
> > > tiddlers tagged 'projects' not just those with both tags. Any advice?
>
> > > Using TW 2.2.6
>
> > > Thanks
>
> > > David
>
> > --
> > Tiddly Learning (http://lewcid.org) : TiddlyWiki news, plugins, themes and
> > educational usage

J.Ramón Palacios

unread,
Nov 29, 2007, 6:25:27 PM11/29/07
to Tiddl...@googlegroups.com
Try this:

http://tiddlyspot.com/searchbytags/

2007/11/26, theDimsumKid <a.ha...@gmail.com >:

FND

unread,
Nov 30, 2007, 4:58:52 AM11/30/07
to Tiddl...@googlegroups.com
> There is currently no way to list tiddlers tagged with (eg) projects AND work.

I just needed this for one of my own projects, so I wrote a quick script
using the EvalMacro*:
---------------
<<eval {{
var tags = ["foo", "bar"];
var r = [];
var t = store.getTaggedTiddlers(tags[0]);
for(var i = 0; i < t.length; i++) {
if(t[i].tags.containsAll(tags)) {
r.push(t[i].title);
}
}
"* [[" + r.join("]]\n* [[") + "]]";
}}>>
---------------
This will create a list of tiddlers tagged with both "foo" AND "bar".
(Thanks to Saq for making me aware of the containsAll() method.)

Is this worth creating a plugin/macro for - or will it become obsolete
with the next official TW release?


-- F.


* http://devpad.tiddlyspot.com/#EvalMacro

theDimsumKid

unread,
Nov 30, 2007, 8:31:21 PM11/30/07
to TiddlyWiki
You my friend are actually a genius. Thank you so so much!

On Nov 29, 11:25 pm, "J.Ramón Palacios" <jot...@gmail.com> wrote:
> Try this:
>
> http://tiddlyspot.com/searchbytags/
>
> 2007/11/26, theDimsumKid <a.han8...@gmail.com>:
> --http://jotarp.org
> blog, proyectos, fotos
Reply all
Reply to author
Forward
0 new messages