I do like this change. There are many times when you want things to show in
a specific order, and alphabetical just doesn't cut it.
Dave
On Thursday, August 8, 2013 11:57:18 AM UTC-5, Jeremy Ruston wrote:
>
> A frustration with TiddlyWiki's implementation of tagging is that when we
> tag a bunch of tiddlers "introduction" or "mainmenu" there's no way of
> stipulating the order in which those tiddlers should be displayed.
>
> In TiddlyWiki5, we can easily transclude all the tiddlers with a
> particular tag:
>
> {{{ [tag[introduction]] |MyTemplate}}}
>
> By default, the ordering is unpredictable (it's based on the order in
> which the tiddlers were added to the internal store).
>
> The common way to control the ordering are to prefix the titles of the
> tagged tiddlers with a number and then sort the titles alphabetically:
>
> {{{ [tag[introduction]sort[title]] |MyTemplate}}}
>
> A slightly more sophisticated variant is to sort by a custom field eg
> "ordering":
>
> {{{ [tag[introduction]sort[ordering]] |MyTemplate}}}
>
> To try to handle this better in TiddlyWiki5, I've added a new standard
> field called "list" alongside tags, modified, modifier, title etc. The
> "list" field contains a list of tiddler titles separated by spaces, using
> double square brackets around titles containing spaces.
>
> The new list field is currently used in three different places:
>
> * the [list[title]] filter operator now retrieves its list of tiddler
> titles from the "list" field of the specified tiddler (it used to read the
> list as a newline delimited list from the text field)
> * the [tag[title]] and [tagging[]] filter operators now sort their results
> by the "list" field
>
> Sorting by the list field means that any tiddlers that appear in the list
> field maintain that ordering in the results. Titles that don't appear in
> the list field appear at the end of the list in natural order.
>
> You can see an example on http://five.tiddlywiki.com/:
>
> 1. Click on the "introduction" tag pill under the title of the HelloThere
> tiddler to bring up the tag popup
> 2. Note how the listed tiddlers are ordered HelloThere, Acknowledgements,
> Improvements, etc., with Contributing listed at the end
> 3. Click on the "introduction" link at the top of the tag popup
> 4. On the "introduction" tiddler, click the info icon, and then select the
> "fields" tab
> 5. Observe how the "list" field specifies the tiddler titles in the same
> order as the dropdown, except that Contributing is not listed, which is why
> it appears at the end of the dropdown
>
> The plan is to add a mechanism for drag and drop reordering of tiddler
> lists. That will enable us to have drag and drop re-ordering of the "open"
> tab in the sidebar as well as tag listings.
>
> I'm also interested in using tiddler lists to model more complex data
> structures. For example, a grid could be structured as a list of rows that
> is each a list of cells.
>
> For those interested in the code, the commit that added the "list" field
> was this one:
>
>
> https://github.com/Jermolene/TiddlyWiki5/commit/be1b16e2600fb56d143a736ab0ae219c243ff45e
>
> Then this commit adds the new sorting behaviour to the "tag" and "tagging"
> filters:
>
>
> https://github.com/Jermolene/TiddlyWiki5/commit/a9a2ae2223c2e25e2f45f03b0c681d0f3f7ba11c
>
> I'm quite excited about this change. It's a modest extension of
> TiddlyWikis core data model that is useful in its own right as well as
> bringing a new dimension to tagging.
>
> Anyhow, it's all fairly mindbending stuff. Do bear in mind that all of
> this is optional; you can carry on using tags as you always have, and
> ignore the list field, if you want. I'd welcome any questions or comments,
>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>
>
>
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.