Google Groups Home
Help | Sign in
Tagging macro improve
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
N-Ice  
View profile
 More options May 27 2006, 11:17 am
From: "N-Ice" <Serg.Podtyn...@gmail.com>
Date: Sat, 27 May 2006 15:17:27 -0000
Local: Sat, May 27 2006 11:17 am
Subject: Tagging macro improve
My first improve for TiddlyWiki
This version of the tagging  also can print count of tagged items via
%1
Now we can use %1 param in label and etc.

======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,tagg ed.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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Udo Borkowski  
View profile
 More options May 30 2006, 4:38 am
From: "Udo Borkowski" <Udo.Borkow...@gmx.de>
Date: Tue, 30 May 2006 01:38:31 -0700
Local: Tues, May 30 2006 4:38 am
Subject: Re: Tagging macro improve
The suggested new labels have a significant effect on existing
TiddlyWikis. Currently the macro just displays the texts "tagging:" or
"not tagging". With the suggested change this will result in much
longer texts that may corrupt the layout of the tiddler, especially
when long tag names are used. Also it may be not so easy to quickly
identify the "tagging" buttons because of their changing titles
(currently the eye can immediately focus on the "tagging").

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)")


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Ruston  
View profile
 More options May 30 2006, 5:11 am
From: "Jeremy Ruston" <jeremy.rus...@gmail.com>
Date: Tue, 30 May 2006 10:11:33 +0100
Local: Tues, May 30 2006 5:11 am
Subject: Re: Tagging macro improve
OK, I've added a ticket for this:

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.

On 30/05/06, Udo Borkowski <Udo.Borkow...@gmx.de> wrote:

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

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Udo Borkowski  
View profile
 More options May 30 2006, 5:33 am
From: Udo Borkowski <Udo.Borkow...@gmx.de>
Date: Tue, 30 May 2006 11:33:41 +0200
Local: Tues, May 30 2006 5:33 am
Subject: Re: Tagging macro improve

Note that SergPodtynnyi has already added a ticket
http://trac.tiddlywiki.org/tiddlywiki/ticket/45

I just added a "duplicate" comment there. I suggest that you close
ticket 45 now (as "duplicate", if possible) so it does no go into the way.

Udo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
N-Ice  
View profile
 More options May 30 2006, 7:01 am
From: "N-Ice" <Serg.Podtyn...@gmail.com>
Date: Tue, 30 May 2006 11:01:04 -0000
Local: Tues, May 30 2006 7:01 am
Subject: Re: Tagging macro improve
I think that's ok, and another question - is there a way to tagging
many tags like this
<<tagging OpenTask Contact>>
i know that the way is to using 2 tagging macros but it will be in
separated lists.

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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Baird  
View profile
 More options May 30 2006, 7:13 am
From: "Simon Baird" <simon.ba...@gmail.com>
Date: Tue, 30 May 2006 21:13:12 +1000
Local: Tues, May 30 2006 7:13 am
Subject: Re: Tagging macro improve

You can do this kind of thing with TiddlerListMacro.
http://jackparke.googlepages.com/jtw.html#TiddlerListMacro

On 5/30/06, N-Ice <Serg.Podtyn...@gmail.com> wrote:

--
Simon Baird <simon.ba...@gmail.com>

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
N-Ice  
View profile
 More options May 30 2006, 9:09 am
From: "N-Ice" <Serg.Podtyn...@gmail.com>
Date: Tue, 30 May 2006 13:09:23 -0000
Local: Tues, May 30 2006 9:09 am
Subject: Re: Tagging macro improve
oh.thank you, it's what i wanted, i think it's great plug-in and should
be native in TiddlyWiki.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google