Here's the pseudo TW code I'm considering (pseudo code means it doesn't
actually work)
\define AtoZfilter() ...
\define glue123() ...
<$button> Create alphabetical TOC structure
<$list A-Z variable=letr1
<$list A-Z variable=letr2
<$list A-Z variable=letr3
<$list Use regular expression to to match by letr1-letr2-letr3. Use rest[
10] to make sure there's at least 10 items
<$action-setfield create new tiddler with letr1-letr2-letr3 tagged
with letr1.
<$list Use regular expression to match by letr1-letr2-letr3
<$fieldmangler>
<$action-sendmessage tm-remove-tag Remove existing letr1 tag
from matching items
</$fieldmangler>
</$list>
</$list>
</$list>
</$list>
</$list>
</$button>
The idea is to try every combination of A-Z for a span of 3 letters, check
if existing tiddlers match (up to a count determined by rest[number], and
if so create tiddler ABC (tagged with "A") and then tag all matching
tiddlers with ABC, deleting existing superfluous tag A. Hmm. Have to be
sure not to delete the tag from the tiddler just created. Oh well.90%
complete is pretty good.
I don't think I can get it to a few hours or more, so if someone else can
write code (either to this or some other code) that's great -- but please
post your intentions so the proverbial wheel isn't reinvented! ;-)
-- Mark
On Thursday, December 13, 2018 at 4:33:55 PM UTC-8, Damon Pritchett wrote:
>
> Tiddlywiki Wizards,
>
> My current Tiddlywiki project currently has over 1800 tiddlers and I have
> a vertical tabbed TOC for each letter of the alphabet. This works pretty
> well except for letters that have a lot of tiddlers that start with say, K,
> that means a lot of scrolling. I would like to have a TOC that contains
> each letter of the alphabet, but, underneath that, have a further
> expandable choice based on, say, the first three characters of the title.
> This should make going through the selections much easier and cleaner. The
> image below illustrates what I'm talking about. I could do this manually,
> but that seems like a lot of work. Thanks in advance for any suggestions.
>
> Damon
>
> [image: Capture.JPG]
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/ef2c4c02-bf59-41ef-80c2-75d1d294bc7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.