Re: [Zim-wiki] Re-ordering the index / custom sorting

2015-02-18 Thread Güven , Ugur Murat
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Debugging Zim, especially plugins/PyCharm IDE

2015-02-18 Thread Jaap Karssenberg
Hi Udo,

My debugging strategy is just putting in a lot of print statements and
then take them out before committing.May be old fashioned, but it kind of
works for me.

More systematic debugging I do by writing test coverage for functions. If
errors are reported having a test case in the suite that triggers on error
is the best way to address it.

Regards,

Jaap


On Tue, Feb 17, 2015 at 7:34 PM, Udo Weik weikeng...@aol.com wrote:

 Hello,

 I'm looking for infos how the source code/plugins can be debugged
 (Windows 7 Professional, 64 Bit SP1). Would prefer the PyCharm
 Community Edition from JetBRAINS as IDE:
 https://www.jetbrains.com/pycharm/
 http://www.jetbrains.com/


 Many thanks and greetings
 Udo

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Re-ordering the index / custom sorting

2015-02-18 Thread Renan Esposte
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.gue...@ts.fujitsu.com 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 

Re: [Zim-wiki] Re-ordering the index / custom sorting

2015-02-18 Thread Güven , Ugur Murat
Hi,

@Davi
Then I would hide the index and just use a flat notebook structure
This is the idea of tagging notes to find the info you need ;)
 A more prominent search box with find-as-you-type and partial results in a 
 popover
Not that sophisticated, but that’s why I build the ‘Search tagged pages’ plugin

@S.Mubashir
Mr. Ugur Murat's method is a little laborious, needs foresight and such 
disciplined notebook looks super-human to me.
Thanks, but I’m not super-human ☺

It is indeed a matter of how to find your information. These two are the 
extremes:  You create your notes in a flat structure or you go with a total 
hierarchy


· The flat structure doesn’t work at all without tagging. But here you 
are structuring again with your tags ;)

· The total hierarchy only doesn’t work in my eyes, too as you will 
find yourself adding another parent and another parent as your information does 
not fit into existing.

So my way is to mix both. Have a hierarchy and use tags. If an information does 
not fit to my structure and I don’t see it being a general topic with more 
information to come, then this
information ends up into the inbox with some tags I find useful (just to find 
that information again ;) )

Regards,
Murat




From: Zim-wiki 
[mailto:zim-wiki-bounces+murat.gueven=ts.fujitsu@lists.launchpad.net] On 
Behalf Of Davi da Silva Böger
Sent: Wednesday, February 18, 2015 3:34 PM
To: zim-wiki@lists.launchpad.net
Subject: [Zim-wiki] Re-ordering the index / custom sorting

Hi people,


Personally, I would prefer instead that more emphasis would be given to search 
instead of an index structure, as it is with Web Wikis. A more prominent search 
box with find-as-you-type and partial results in a popover :). Then I would 
hide the index and just use a flat notebook structure. I tend to prefer linking 
and tags instead of hierarchies to set relationships among pages. Well, just my 
almost off-topic two cents, based on my personal experience.

To the problem at hand tho: I think it would be a good compromise between 
customization and simplicity to allow drag'n'drop (with some keyboard 
equivalent) for reordering, but give context-menu actions to sort by some 
criteria (e.g. alphabetically, by creation date, etc.). Those actions are 
instant, though: they simply pass through the selected pages sorting 
everything. This way you avoid maintaining different modes, while keeping it 
relatively easy for people to go either sorted or custom.


Best regards,
Davi.


Em quarta-feira, 18 de fevereiro de 2015, S. Mubashir 
sajid.mubas...@gmail.comjavascript:_e(%7B%7D,'cvml','sajid.mubas...@gmail.com');
 escreveu:
Dear Zim-Gurus,

May I suggest a simple alternative, that doesn't involve embedding some special 
logic or identifier or ID etc?

 *   Let the current alphabetical sorting remain.
 *   For anyone who wants to re-order, as per their preference, a key-binding 
can be given.  For example, in MS-Word, the key-sequence [Shift+Alt+Up] or 
[Shift+Alt+Down} can rearrange paragraphs.  The OpenOffice/ LibreOffice 
Key-Binding is different and probably [Ctrl+Alt+Up/ Down]; I am not sure of the 
latter because I always change it to [Ctrl+Up or Ctrl+Down] on all PC/ laptop I 
use.

I depend on this key-binding for its simplicity, power  convenience.  Mr. Ugur 
Murat's method is a little laborious, needs foresight and such disciplined 
notebook looks super-human to me.

My special (earnest) request is that the key-binding (for page-promotion/ 
demotion) should also be applicable to paragraphs (promotion/ demotion) within 
the page, and if you do that, Zim will become an exceptional text-editor.  For 
regular use one won't need the Word Processor, until printing the page becomes 
important.
Best regards,
S.Mubashir



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp