mod for TaggerPlugin: source tiddler containing taglist

3 views
Skip to first unread message

Tobias Beer

unread,
Jun 8, 2008, 8:12:57 PM6/8/08
to TiddlyWiki
I wanted a better functionality for TaggerPlugin, which provides a
dropdown check/uncheck tags for a tiddler:
http://tw.lewcid.org//#TaggerPlugin

I didn't like the idea of tagging a "source tiddler" with the
corresponding tags which I wanted to have listed, because of two main
drawbacks:

1) there was no option but to have the list of tags sorted
alphabetically
2) all tags listed in the 'source' tiddler would refer to a tiddler
that only existed to provide the functionality I wanted from
TaggerPlugin (-> it isn't that nice to have a "TaggerTemplate" show up
in your list of "nextTasks"

What I really wanted was a tiddler which would contain the list of
tags which I wanted to be ckeckable in Tagger's Dropdown:

--> therefore I changed the following code from TaggerPlugin:

if (source)
{var sourcetiddler=store.getTiddler(source);
tags=sourcetiddler.tags.sort();}

--> into:

if (source) {
var sourcetiddler=store.getTiddler(source);
var tids = store.filterTiddlers(store.getTiddlerText(source));
var tags=new Array();
for(var t=0; t<tids.length; t++) tags.push(tids[t].title);
}

I was amazed how it worked right away, as this was actually the first
bit of coding my own logic into tiddlywiki ;-)
Well... I would love to see this implemented in the version on lewcid,
even though I know it would actually change the original way of how to
set up a source tiddler for the TaggerPlugin... well, it works for
me ;-)

You can see what I mean looking at http://tbgtd.tiddlyspot.com#TaggerSourceGTD
...look out for a TaggerDropdown called 'gtd' next to the star in the
ViewTemplateToolbar
Reply all
Reply to author
Forward
0 new messages