Mark - that is great, couldn't wrap my mind around it. . .
Made it pretty by changing the output to . . .
out+="* <<tag [["+tags[i][0]+"]]>> ("+tags[i][1]+")"+"\n";
It is working in my SandBox
Mike
On Dec 22, 12:26 pm, "Mark S." <[email protected]> wrote:
> Haven't done anything fancy or setting up as a macro/template yet, but
> this script should pick up all tags starting with "KW -" :
>
> <script>
> var prefix ="KW -" ;
> var out = "" ;
> var tags= store.getTags() ;
> //wikify(tags,place) ;
> for(var i=0;i<tags.length;i++) {
> str = new String(tags[i]) ;
> if(! str.startsWith(prefix)) continue ;
>
> out += str.split(",")[0] + "\n" ;}
>
> return out ;
> </script>
>
> On Dec 22, 6:47 am, Mike <[email protected]> wrote:
>
> > Playing
> > withhttp://yann.perrin.googlepages.com/twkd.html#DividedListsPluginDocume...
>
> > Trying to find some Documentation (not on the current twkd website)
>
> > Good Luck,
>
> > Mike
>
> > On Dec 21, 1:31 pm, Mike <[email protected]> wrote:
>
> > > How many tags do you have to work with?
> > > If not a large amount then the second example works well, would have
> > > to create a tiddler called
>
> > > ShowAllByTagsB
>
> > > /%
> > > |Requires|InlineJavascriptPlugin|
> > > |Description|tag list with exclude filter|
> > > |Source|http://groups.google.com/group/tiddlywiki/browse_thread/thread/
> > > fc474311e7a65dc/df94ec42103fdd5f?
> > > lnk=gst&q=ShowAllByTags#df94ec42103fdd5f|
> > > Usage:
> > > <<tiddler ShowAllByTagsB with: "tag tag tag">>
> > > where
> > > "tag tag tag" (optional)
> > > quoted, space-separated, bracketed list of tags to
> > > **exclude** from
> > > the display
> > > %/<script>
> > > var ex=[];
> > > if ("$1"!="$"+"1") ex="$1".readBracketedList();
> > > var tags = store.getTags();
> > > if(tags.length == 0) return "no tags in document";
> > > var out="";
> > > for(var t=0; t<tags.length; t++) {
> > > if (ex.contains(tags[t][0])) continue;
> > > // out+="*[["+tags[t][0]+"]]"+"\n";
> > > out+="*<<tag [["+tags[t][0]+"]]>>\n";
>
> > > }
>
> > > return out;
> > > </script>
>
> > > Then transclude like the example
> > > <<tiddler ShowAllByTagsB with: "tag tag tag">>
>
> > > where "tag tag tag" is every tag you wish to exclude
>
> > > Could be a little cumbersome if you have hundreds of tags . . .
>
> > > Mike
>
> > > On Dec 21, 7:28 am, Mike <[email protected]> wrote:
>
> > > > Sorry, Something likehttp://www.TiddlyTools.com/#ShowAllByTags
>
> > > > But instead of an exclude list, an include list via wild card. . .
>
> > > > I can't think of anything out of the box, will look at little more
> > > > later on today. . .
> > > > (Sounds like a job for InlineJavascriptPlugin)
>
> > > > Found something similar
> > > > herehttp://groups.google.com/group/tiddlywiki/browse_thread/thread/fc4743...
>
> > > > I think the formatting is along what you would want, but would still
> > > > need to work on the tag list
>
> > > > Will take another look at it later today, I am not as proficient in JS
> > > > as many of the other people here. . .
>
> > > > Mike
>
> > > > On Dec 20, 10:33 pm, JayF <[email protected]> wrote:
>
> > > > > Thanks for your efforts.
>
> > > > > I added the matchtagsplugin, and used the following syntax:
>
> > > > > <<matchTags popup "label:test" KW -.* >>
>
> > > > > which yielded a list of all the tiddlers with any tag beginning with
> > > > > "KW -"
>
> > > > > What I want to generate is a list of all the tags beginning with the
> > > > > "KW -" string. Some of these tags are tiddlers, but many of them are
> > > > > just tags. The core function "allTags" accesses the collection of all
> > > > > tags. I want to filter this list.
>
> > > > > Any help would be appreciated.
>
> > > > > Jay
>
> > > > > On Dec 20, 5:43 pm, Mike <[email protected]> wrote:
>
> > > > > > Nevermind . . .
>
> > > > > >http://www.TiddlyTools.com/#MatchTagsPlugin
>
> > > > > > From this
> > > > > > post:http://groups.google.com/group/tiddlywiki/browse_thread/thread/313055...
>
> > > > > > ELS says:
> > > > > > provides a robust tag filtering syntax using full Boolean-logic
> > > > > > (AND,
> > > > > > OR, NOT, plus nested parentheses as needed). You can also use
> > > > > > regular
> > > > > > expressions to match *patterned* tags (e.g., use "foo.*" to match
> > > > > > any
> > > > > > tag starting with "foo").
>
> > > > > > Enjoy,
>
> > > > > > Mike
>
> > > > > > On Dec 20, 4:25 pm, Mike <[email protected]> wrote:
>
> > > > > > > Maybe this could help. . .
>
> > > > > > >http://lewcid.org/2007/10/23/how-to-list-tiddlers-by-tags-the-filter-...
>
> > > > > > > Mike
>
> > > > > > > On Dec 20, 9:33 am, JayF <[email protected]> wrote:
>
> > > > > > > > I would to reduce the list of tags in my sidebar to a sublist,
> > > > > > > > i. e.
> > > > > > > > I only want to display tags that begin with "KW - " (for
> > > > > > > > keyword).
>
> > > > > > > > I am using Tiddlytagging, but I don't think it will produce
> > > > > > > > this list
> > > > > > > > unless each tag has been explicitly opened and converted to a
> > > > > > > > tiddler.
>
> > > > > > > > The current command that generates the list of all tags is:
>
> > > > > > > > <<allTags [a-z]>>
>
> > > > > > > > Is there another command that will allow me to build a filtered
> > > > > > > > list?
>
> > > > > > > > I apologize in advance if this question has been addressed
> > > > > > > > before.
>
> > > > > > > > Jay F.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.