← Back to team overview

zim-wiki team mailing list archive

Re: Re-ordering the index / custom sorting

 

Hi Jaap,

Thank you for checking with the community :)
Here goes my 2 cents about the index...

First, I'd like to have a global setting ("Default Ordering") per notebook
which defines the sorting method (name, creation date, last modified date,
<customs>).
Whenever a new page/link to a page is created, its position should follow
that definition.

To change the sorting method, if I move a page (drag and drop) it would set
the "sibling" pages sorting flag:
(N) Name, (C) Creation, (M) Modification, (X) Manual

1.
Parent   (N)
 Child1  (N)
 Child2  (N)
 Child3  (N)

2. Drag and Drop Child2

Parent   (N)
 Child2  (X)
 Child1  (X)
 Child3  (X)

3. Created reference to Child4 somewhere

Parent   (N)
 Child4  (X)
 Child2  (X)
 Child1  (X)
 Child3  (X)

Finally, if I want to rearrange/autosort a certain level, I would
right-click any page > "Sort" which will sort as per the global definition.
Or, right-click "Sorting..." > pick between the options {name, creation,
modification <,custom0>}.
I am not sure whether it is best to pop up the sorting menu when
right-clicking on the Child page (which would sometimes cause reordering
non-existing pages) or right-clicking the parent page and have an option
like "Subpages sorting".

Thinking forward, If I want an exclusive method of sorting my notebook, it
should be easy to implement a class for that - like Comparable and
Comparator in Java.
The Default Ordering should also display any additional implementations of
a custom ordering you've created.
("0" -> my ordering for PJ, "1" -> presentation sorting....)


1/ Do you only want custom ordering, or switch between custom and
alphabetical sorting ?
Default ordering (name, creation, modification and manual) and a way to
implement custom sorting programatically.

2/ If so, where do you click to switch between custom ordering and
alphabetic ordering ? And how this switch affect sub-sections ?
Right click a subpage. The ordering you pick affect all the sibling pages
(page withing the same hierarchy level)

3/ When index has custom ordering, where do new pages show up - at the end,
in the front, other position ?
The only exception is if Defaul Ordering = Name and Page Ordering Flag = X,
on top/front.
If (Default Ordering = Name and Page Ordering Flag = N) or (DO = Creation
and POF = C) and so on, follow that ordering for new pages.


Regards,

Renan Esposte.

Em Wed Feb 18 2015 at 08:23:55, Güven, Ugur Murat <
murat.gueven@xxxxxxxxxxxxxx> escreveu:

> Hi Jaap,
>
>
>
> >1/ Do you only want custom ordering, or switch between custom and
> alphabetical sorting ?
>
>
>
> What I’d love to see is the possibility to enable / disable a personal
> index
>
>
>
> My current structure is:
>
>
>
> 004Projects
>
> 004-0010-ProjectA
>
>                 001-Information-ProjectA
>
>                 002-Tasks-ProjectA
>
>                 003-Meetings-ProjectA
>
>                 M001-DATE-ProjectA
>
>                 M002-DATE-ProjectA
>
>                 M003-DATE-ProjectA
>
> 003-OngoingTopics-ProjectA
>
> 004-0020-ProjectB
>
> 004-0030-ProjectC
>
>
>
> … using the pre-fix numbers for sorting.
>
>
>
> So putting this together means that I would need the possibility to sort
>
> ·         according to creation date
>
> ·         setting the position manually
>
>
>
> >2/ If so, where do you click to switch between custom ordering and
> alphabetic ordering ? And how this switch affect sub-sections ?
>
>
>
> Basically I need to have the option per parent note to make child notes
> sorted against. So, right-clicking on the parent note should show a popup
> menu
>
>
>
> In above example I would sort manually:
>
> 004-0010-ProjectA
>
>                 001-Information-ProjectA
>
>                 002-Tasks-ProjectA
>
>                 003-Meetings-ProjectA
>
> 003-OngoingTopics-ProjectA
>
>
>
> These should be sorted against creation date:
>
>                 003-Meetings-ProjectA
>
>                 M001-DATE-ProjectA
>
>                 M002-DATE-ProjectA
>
>                 M003-DATE-ProjectA
>
>
>
> >3/ When index has custom ordering, where do new pages show up - at the
> end, in the front, other position ?
>
>
>
> According to the selected option in parent note. There could be an
> exception though -->
>
>
>
> >5/ ... what did I not think of yet ... ?
>
>
>
> If camel case creation is switched on, the notes which are created
> automatically need to be placed as child notes and should be sorted
> alphabetically as standard.
>
>
>
> >4/ Should custom sorting depend on list of links in parent page ? (Either
> by default or as a plugin)
>
>
>
> That is a nice idea. On the one hand it could make it easier for the user
> to find the notes in the index if the index order follows the order in the
> note, but on the other hand, if the
>
> links are not in a list within a note, I don’t see a direct visual
> connection to the index order and to the order within the note.
>
>
>
> -->
>
>
>
> >5/ ... what did I not think of yet ... ?
>
>
>
> I often use parent notes as ‘folders’ with little or no content. Such
> ‘special’ notes could have the option to have the sub-notes listed as links
> (basically your idea at 4/ with an addition)
>
>
>
> Thank you and Regards,
>
> Murat
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>

References