Sections were added to tiddlers fairly late on in the development of TiddlyWiki (release 2.2 or 2.3, I can't remember exactly which release). Generally when adding things we add the minimal useful implementation, so we added sections, but no subsection hierarchy - this also made it easier to reference sections. So sections could be extended to include subsections, but in my view this should only be done if there is a genuine need. So do you have a real use-case for a tree structure, or is it just a "nice to have"?
Martin On 9 August 2011 22:36, Yakov <[email protected]> wrote: > Hello coreDevs, > > I wonder why tiddler sections are pieces of tw-code from one !! to > another !!!!. As an alternative, I'd imagine the tree structure of > sections meaning that in following tw-code > > !Section > ...1 > !!Subsection > ...2 > !!Another subsection > ...3 > > there's a section Section which contains > > ...1 > !!Subsection > ...2 > !!Another Subsection > ...3 > > and also sections Subsection and Another Subsection which contain > > ...2 > > and > > ...3 > > respectively. So, my first question is whether such a design is > somewhat deliberate or just the "as is" state which can be improved? > > > Also, I'd like to propose to add some syntax which ends a section and > is not treated as a beginnig of a new section, like > > !!!<end> > > For instance, if elephants are described in a tiddler (somewhat like > an article is written) and there's a subsection > > !!African elephants > > which is followed by some notes and then by the subsection > > !!Asian elephants > > it would be convenient to write > > !!African elephants > [smth about african elephants] > !!<end> > > [some notes] > > !!Asian elephants > [smth about asian elephants] > > These two issues has the same aim: to make of sections a really useful > tool to extract semantically separated parts of content. As for now, > it's more convenient to use sections only for constructions like > > <<slider .. [[thisTiddler##hiddenSection]] ....>/% > !hiddenSection > ... > !end > %/ > > and in the case of elephants -- to use <<tiddler>> macros for each > subsection (thanks to Eric there's also QuickEditPackage which > contains the "split" button). > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" 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/tiddlywikidev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev?hl=en.
