This doesn't work any better than the other thousand things I've
tried.
<<forEachTiddler
where
'tiddler.title.startsWith(["A" || "a"])'
sortBy '(tiddler.title)'
ascending
write etc.
Thanks for any help that can be given.
Morris Gray
http://twhelp.tiddlyspot.com
A TiddlyWiki help file for beginners
But still, I would like to have for example also Ä and ä included. How
would I have to go about?
Regards,
W.
On 1 Sep., 10:47, "Saq Imtiaz" <lew...@gmail.com> wrote:
> Try this:
>
> where
> 'tiddler.title.toLowerCase().startsWith("a")'
> sortBy '(tiddler.title.toLowerCase())'
>
> On 9/1/07, Morris Gray <msg...@symbex.net.au> wrote:
>
>
>
>
>
> > I wish a script that will create a list of tiddlers by the first
> > letter both upper and lower case. The script below will do the first
> > letter but I don't know how to have it do both cases.
>
> > This doesn't work any better than the other thousand things I've
> > tried.
>
> > <<forEachTiddler
> > where
> > 'tiddler.title.startsWith(["A" || "a"])'
> > sortBy '(tiddler.title)'
> > ascending
> > write etc.
>
> > Thanks for any help that can be given.
>
> > Morris Gray
> >http://twhelp.tiddlyspot.com
> > A TiddlyWiki help file for beginners
>
> --
> 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
> TiddlySnip (http://tiddlysnip.com ) : a firefox extension that turns
> TiddlyWiki into a scrapbook!
> LewcidTW (http://tw.lewcid.org) : a repository of extensions for
> TiddlyWiki
) : 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
<<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")||
tiddler.title.toLowerCase().startsWith("$2")' sortBy
'(tiddler.title)' write '((index == 0) ? "" : " | ")+"[["+tiddler.title
+"]]"' begin 'count+" Tiddlers found:\n"' none '"Nothing found\n"'>>
I tried it with variations of:
<<tiddler ABC with: a ä>>
But that recognizes only the first parameter.
What would be the correct syntax for more than one parameter?
Regards,
W.
On 1 Sep., 13:38, "Saq Imtiaz" <lew...@gmail.com> wrote:
> where
> 'tiddler.title.toLowerCase
> ().startsWith("a")||tiddler.title.toLowerCase().startsWith("ä")'
> sortBy '(tiddler.title.toLowerCase())'
>
> that should grab the correct tiddlers but I am not entirely sure if they
> will be grouped correctly.
>
> Cheers,
> Saq
>
> > > TiddlySnip (http://tiddlysnip.com) : a firefox extension that turns
> > > TiddlyWiki into a scrapbook!
> > > LewcidTW (http://tw.lewcid.org) : a repository of extensions for
> > > TiddlyWiki
>
> --
> TiddlyThemes.com (http://tiddlythemes.com) : a gallery of TiddlyWiki
> themes.
> TiddlySnip (http://tiddlysnip.com) : a firefox extension that turns
> TiddlyThemes.com ( http://tiddlythemes.com) : a gallery of TiddlyWiki
<<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")||
tiddler.title.toLowerCase().startsWith("$2")' sortBy
'(tiddler.title)' write '((index == 0) ? "" : " | ")+"[["+tiddler.title
+"]]"' begin 'count+" Tiddlers found:\n"' none '"Nothing found\n"'>>
I tried it with variations of:
<<tiddler ABC with: a ä>>
But that recognizes only the first parameter.
What would be the correct syntax for more than one parameter?
> > > 'tiddler.title.toLowerCase ().startsWith("a")'
> > > sortBy '(tiddler.title.toLowerCase())'
>
> > > On 9/1/07, Morris Gray <msg...@symbex.net.au> wrote:
>
> > > > I wish a script that will create a list of tiddlers by the first
> > > > letter both upper and lower case. The script below will do the first
> > > > letter but I don't know how to have it do both cases.
>
> > > > This doesn't work any better than the other thousand things I've
> > > > tried.
>
> > > > <<forEachTiddler
> > > > where
> > > > 'tiddler.title.startsWith(["A" || "a"])'
> > > > sortBy '(tiddler.title)'
> > > > ascending
> > > > write etc.
>
> > > > Thanks for any help that can be given.
>
> > > > Morris Gray
> > > >http://twhelp.tiddlyspot.com
> > > > A TiddlyWiki help file for beginners
>
> > > --
> > > 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
>
> --
> TiddlyThemes.com (http://tiddlythemes.com) : a gallery of TiddlyWiki
> themes.
> TiddlySnip ( http://tiddlysnip.com) : a firefox extension that turns
<<forEachTiddler where 'translate(tiddler.title).startsWith("$1")'
sortBy 'translate(tiddler.title)' script '
function translate(s) {
return s.replace
(/[äÄ]/g,"ae").replace(/[öÖ]/g,"oe").replace(/[üÜ]/
g,"ue").toLowerCase();
}
'
write '((index == 0) ? "" : " | ")+"[["+tiddler.title+"]]"' begin
'count+" Tiddlers found:\n"' none '"Nothing found\n"'>>
and call it with: <<tiddler ÄÖÜ with: u>>
By the way, if one wants this only for Tiddlers tagged with a specific
tag, the following I could make work with more than one parameters :-)
<<tiddler ABCwithTag with: b anyTag>>
<<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")
&& tiddler.tags.contains("$2")' sortBy '(tiddler.title)' ascending
write '((index == 0) ? "" : " | ")+"[["+tiddler.title+"]]"' begin
'count+" Tiddlers found\n"' none '"No Tiddlers found\n"'>>
Regards,
W.
On 1 Sep., 14:12, "Udo Borkowski" <udo.borkow...@googlemail.com>
wrote:
> If you like to sort the "Ä" as an "Ae" you may try this:
>
> <<forEachTiddler
> where
> 'translate(tiddler.title).startsWith("a")'
>
> sortBy
> 'translate(tiddler.title)'
>
> script '
> function translate(s) {
> return s.replace
> (/[äÄ]/g,"ae").replace(/[öÖ]/g,"oe").replace(/[üÜ]/g,"ue").toLowerCase();
> }
> '
>
>
>
> If you want to handle the "Ä" as a normal "A" replace the translate function
> by this:
>
> function translate(s) {
> return s.replace
> (/[äÄ]/g,"a").replace(/[öÖ]/g,"o").replace(/[üÜ]/g,"u").toLowerCase();
> }
>
> Udo
>
> ----------
> Udo Borkowskihttp://www.abego-software.de
>
> > > TiddlyThemes.com (http://tiddlythemes.com) : a gallery of TiddlyWiki
On 1 Sep., 14:36, "Udo Borkowski" <udo.borkow...@googlemail.com>
wrote:
> > <<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")||
> > tiddler.title.toLowerCase().startsWith("$2")' sortBy
> > '(tiddler.title)' write '((index == 0) ? "" : " | ")+"[["+tiddler.title
> > +"]]"' begin 'count+" Tiddlers found:\n"' none '"Nothing found\n"'>>
>
> > I tried it with variations of:
>
> > <<tiddler ABC with: a ä>>
>
> > But that recognizes only the first parameter.
>
> > What would be the correct syntax for more than one parameter?
>
> Works for me...
Don't know why, but now it suddenly worked for me too!
Something must be missed by google groops formating, because with the
complete group list I get this error:
<<forEachTiddler..>>: SyntaxError: unterminated String literal
However, for my intended abc grouping I probably still have to do the
former forEachTiddler call 26 times, because in the end I would want a
list in for calling each item with transient NestedSliders of
TiddlyTools.
Thanks for your responses,
W.
it was suggested a few times, better using something like this for
submitting any code snippets: "tiddlywiki private pastebin -
collaborative debugging tool"
http://tiddlywiki.pastebin.com/
--
schilke
W.
If you have NestedSliderPlugin, DOMTweaksPlugin and this template in a
Tiddler:
<<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")||
tiddler.title.toLowerCase().startsWith("$2")' sortBy '(tiddler.title)'
write '((index == 0) ? "" : " | ")+"[["+tiddler.title+"]]"' begin
'count+" Tiddlers found:\n"' none '"Nothing found\n"'>>
Then the following will create what I wanted:
+++*[A]#panelA:...<<tiddler ABC with: a ä>>===
+++*[B]#panelB:...<<tiddler ABC with: b>>===
+++*[C]#panelC:...<<tiddler ABC with: c>>===
+++*[D]#panelD:...<<tiddler ABC with: d>>===
+++*[E]#panelE:...<<tiddler ABC with: e>>===
+++*[F]#panelF:...<<tiddler ABC with: f>>===
+++*[G]#panelG:...<<tiddler ABC with: g>>===
+++*[H]#panelH:...<<tiddler ABC with: h>>===
+++*[I]#panelI:...<<tiddler ABC with: i>>===
+++*[J]#panelJ:...<<tiddler ABC with: j>>===
+++*[K]#panelK:...<<tiddler ABC with: k>>===
+++*[L]#panelL:...<<tiddler ABC with: l>>===
+++*[M]#panelM:...<<tiddler ABC with: m>>===
+++*[N]#panelN:...<<tiddler ABC with: n>>===
+++*[O]#panelO:...<<tiddler ABC with: o ö>>===
+++*[P]#panelP:...<<tiddler ABC with: p>>===
+++*[Q]#panelQ:...<<tiddler ABC with: q>>===
+++*[R]#panelR:...<<tiddler ABC with: r>>===
+++*[S]#panelS:...<<tiddler ABC with: s>>===
+++*[T]#panelT:...<<tiddler ABC with: t>>===
+++*[U]#panelU:...<<tiddler ABC with: u ü>>===
+++*[V]#panelV:...<<tiddler ABC with: v>>===
+++*[W]#panelW:...<<tiddler ABC with: w>>===
+++*[X]#panelX:...<<tiddler ABC with: x>>===
+++*[Y]#panelY:...<<tiddler ABC with: y>>===
+++*[Z]#panelZ:...<<tiddler ABC with: z>>===
+++*[2007]#panel20:...<<tiddler 2007>>===
<<DOM move panelA>><<DOM move panelB>><<DOM move panelC>><<DOM move
panelD>><<DOM move panelE>><<DOM move panelF>><<DOM move panelG>><<DOM
move panelH>><<DOM move panelI>><<DOM move panelJ>><<DOM move
panelK>><<DOM move panelL>><<DOM move panelM>><<DOM move panelN>><<DOM
move panelO>><<DOM move panelP>><<DOM move panelQ>><<DOM move
panelR>><<DOM move panelS>><<DOM move panelT>><<DOM move panelU>><<DOM
move panelV>><<DOM move panelW>><<DOM move panelX>><<DOM move
panelY>><<DOM move panelZ>><<DOM move panel20>>
And with the this little change it gives a nice index in a SideBarTab:
+++*[A]...<<tiddler ABC with: a ä>>===<br>+++*[B]...<<tiddler ABC
with: b>>===<br>+++*[C]...<<tiddler ABC with: c>>===<br>++
+*[D]...<<tiddler ABC with: d>>===<br>+++*[E]...<<tiddler ABC with:
e>>===<br>+++*[F]...<<tiddler ABC with: f>>===<br>+++*[G]...<<tiddler
ABC with: g>>===<br>+++*[H]...<<tiddler ABC with: h>>===<br>++
+*[I]...<<tiddler ABC with: i>>===<br>+++*[J]...<<tiddler ABC with:
j>>===<br>+++*[K]...<<tiddler ABC with: k>>===<br>+++*[L]...<<tiddler
ABC with: l>>===<br>+++*[M]...<<tiddler ABC with: m>>===<br>++
+*[N]...<<tiddler ABC with: n>>===<br>+++*[O]...<<tiddler ABC with: o
ö>>===<br>+++*[P]...<<tiddler ABC with: p>>===<br>+++*[Q]...<<tiddler
ABC with: q>>===<br>+++*[R]...<<tiddler ABC with: r>>===<br>++
+*[S]...<<tiddler ABC with: s>>===<br>+++*[T]...<<tiddler ABC with:
t>>===<br>+++*[U]...<<tiddler ABC with: u ü>>===<br>++
+*[V]...<<tiddler ABC with: v>>===<br>+++*[W]...<<tiddler ABC with:
w>>===<br>+++*[X]...<<tiddler ABC with: x>>===<br>+++*[Y]...<<tiddler
ABC with: y>>===<br>+++*[Z]...<<tiddler ABC with: z>>===<br>++
+*[2007]...<<tiddler ABC with: 20>>===
Or with this template:
<<forEachTiddler where 'tiddler.title.toLowerCase().startsWith("$1")
&& tiddler.tags.contains("$2")' sortBy '(tiddler.title)' write
'((index == 0) ? "" : " | ")+"[["+tiddler.title+"]]"' begin 'count+"
entries found\n"' none '"Nothing found:\n"'>>
It gives a further tab with an index limited to those with a specific
tag :
+++*[A]...<<tiddler ABCwithTag with: a sys>>===<br>+++*[B]...<<tiddler
ABCwithTag with: b sys>>===<br>+++*[C]...<<tiddler ABCwithTag with: c
sys>>===<br>+++*[D]...<<tiddler ABCwithTag with: d sys>>===<br>++
+*[E]...<<tiddler ABCwithTag with: e sys>>===<br>+++*[F]...<<tiddler
ABCwithTag with: f sys>>===<br>+++*[G]...<<tiddler ABCwithTag with: g
sys>>===<br>+++*[H]...<<tiddler ABCwithTag with: h sys>>===<br>++
+*[I]...<<tiddler ABCwithTag with: i sys>>===<br>+++*[J]...<<tiddler
ABCwithTag with: j sys>>===<br>+++*[K]...<<tiddler ABCwithTag with: k
sys>>===<br>+++*[L]...<<tiddler ABCwithTag with: l sys>>===<br>++
+*[M]...<<tiddler ABCwithTag with: m sys>>===<br>+++*[N]...<<tiddler
ABCwithTag with: n sys>>===<br>+++*[O]...<<tiddler ABCwithTag with: o
sys>>===<br>+++*[P]...<<tiddler ABCwithTag with: p sys>>===<br>++
+*[Q]...<<tiddler ABCwithTag with: q sys>>===<br>+++*[R]...<<tiddler
ABCwithTag with: r sys>>===<br>+++*[S]...<<tiddler ABCwithTag with: s
sys>>===<br>+++*[T]...<<tiddler ABCwithTag with: t sys>>===<br>++
+*[U]...<<tiddler ABCwithTag with: u sys>>===<br>+++*[V]...<<tiddler
ABCwithTag with: v sys>>===<br>+++*[W]...<<tiddler ABCwithTag with: w
sys>>===<br>+++*[X]...<<tiddler ABCwithTag with: x sys>>===<br>++
+*[Y]...<<tiddler ABCwithTag with: y sys>>===<br>+++*[Z]...<<tiddler
ABCwithTag with: z sys>>===
On 1 Sep., 15:21, wolfgang <wolfgangl...@gmail.com> wrote:
> Ok, saw you updated your side, and with the code there the group list
> also worked for me :-)
>
> http://tiddlywiki.abego-software.de/#%5B%5BList%20all%20Tiddlers%20in...
Great! Thanks Saq. (now explain how it works:)
Morris Gray
http://twhelp.tiddlyspot.com
A TiddlyWiki help file for beginners
On Sep 1, 6:47 pm, "Saq Imtiaz" <lew...@gmail.com> wrote:
> Try this:
>
> where
> 'tiddler.title.toLowerCase().startsWith("a")'
> sortBy '(tiddler.title.toLowerCase())'
>
> On 9/1/07, Morris Gray <msg...@symbex.net.au> wrote:
>
>
>
>
>
> > I wish a script that will create a list of tiddlers by the first
> > letter both upper and lower case. The script below will do the first
> > letter but I don't know how to have it do both cases.
>
> > This doesn't work any better than the other thousand things I've
> > tried.
>
> > <<forEachTiddler
> > where
> > 'tiddler.title.startsWith(["A" || "a"])'
> > sortBy '(tiddler.title)'
> > ascending
> > write etc.
>
> > Thanks for any help that can be given.
>
> > Morris Gray
> >http://twhelp.tiddlyspot.com
> > A TiddlyWiki help file for beginners
>
> --
> 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
I'd like to create A to Z tabs for only tiddlers contiaining a certain
tag. Is there a way of doing it?
Thank you