======CODE==========
merge(config.macros.tagging,{
label: "%0 List (%1)",
labelNotTag: "%0 List (%1)",
tooltip: "List of tiddlers tagged with '%0' (%1)"});
======CODE==========
config.macros.tagging.handler =
function(place,macroName,params,wikifier,paramString,tiddler)
{
var theList = createTiddlyElement(place,"ul");
var title = "";
if(tiddler instanceof Tiddler)
title = tiddler.title;
if(params[0])
title = params[0];
var tagged = store.getTaggedTiddlers(title);
theList.setAttribute("title",this.tooltip.format([title,tagged.length]));
var prompt = tagged.length == 0 ? this.labelNotTag :this.label;
createTiddlyElement(theList,"li",null,"listTitle",prompt.format([title,tagged.length]));
for(var t=0; t<tagged.length; t++)
createTiddlyLink(createTiddlyElement(theList,"li"),tagged[t].title,true);
}
======CODE==========
P.S. I use tagging for see how many (Closed,Open)Tasks i have.
Also I personally never had the need to know the exact number of tagged
tiddlers, just to know if or if not tiddlers are tagged was sufficient.
Nevertheless if there is a need for this count information I suggest to
make it possible, but keep the old behaviour as the default.
I.e.
* Use the suggested code changes in config.macros.tagging.handler (i.e.
allow formatting the label/tooltip with title and count).
* Keep the old config labels/tooltip (without the %0, %1). When someone
has the need for the counts he can just overwrite these labels with
strings containing %0 and %1 (e.g. config.macros.tagging.label = "%0
List (%1)")
http://trac.tiddlywiki.org/tiddlywiki/ticket/46
I reckon that Udo's right: we should make the code change because it's
pretty trivial, but keep the current lingo strings for backwards
compatibility.
Cheers
Jeremy.
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com
and also maybe a good feature to inclusive tagging
<<tagging Contact=>Friend >>
that will show list of the my friends contacts or it will be so
complicated with these feature.