Bug 111362 - add ability to sort the books and the entries in the books alphabetically
Summary: add ability to sort the books and the entries in the books alphabetically
Status: RESOLVED FIXED
Alias: None
Product: kjots
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stephen Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 18:43 UTC by Janet
Modified: 2010-04-18 23:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2005-08-23 18:43:37 UTC
Version:           v0.5 (using KDE 3.4.1, Debian Package 4:3.4.1-1 (3.1))
Compiler:          gcc version 3.3.6 (Debian 1:3.3.6-5)
OS:                Linux (i686) release 2.6.11-kanotix-7

I would very much appreciate if there would be an option to sort the entries and the books alphabetically on command. Some things would be much easier to re-find. But of course there should remain the possibility to sort the books and entries individually.
Comment 1 Janet 2005-08-23 18:45:02 UTC
IT would be great :))
Comment 2 Jaison Lee 2005-08-23 20:08:04 UTC
Hmmm... interesting...

What happens when you have books inside of books? Will the books sort and move up to the top like folders do in Konqueror or will they "mix in" with the pages?
Comment 3 Nicolas L. 2005-08-23 21:07:21 UTC
i think it would be into the with section
Comment 4 Janet 2005-08-24 16:44:27 UTC
Books inside books? Well, I would expect them to move up to the top.
Comment 5 Peter Paulsen 2006-01-12 05:44:10 UTC
I would expect that I have to sort the books inside of books separately. It would be very nice to be able to sort the books alphabetically (on demand or as a fixed setting/option) but likewise it would be really horrible if the entries in the books (and books inside books are entries for me) also change their position for I want the new entries to be at the top of the book.

I would vote 20 for sorting the root books but -50 for autosorting the entries when sorting the root books.
Comment 6 Janet 2006-03-24 13:03:16 UTC
How does kjots in KDE 3.5.1 sort the books? It's a bit weird: When the books where converted to the new format the sorting order changed. So I manually sorted them back to be in alphabetical order and saved. But every time I reopen kjots - the books are back in the what looks to me absolutely unsorted order... Please help and add a sorting feature. 
Comment 7 Jaison Lee 2006-03-25 01:16:12 UTC
> How does kjots in KDE 3.5.1 sort the books? 

Books will show up in the order the ".book" files are read from the system. You can adjust the order by changing the names of the ".book" files in the KJots data directory. Make sure KJots is closed when you do this and keep the .book extension or it won't show up in the next version of KJots. If you want things to sort alphabetically top-to-bottom, you'll need to name the files in reverse alphabetical order since the listview inserts new items at the top. The filenames don't have anything to do with the book name so you can name them whatever you want.

> Please help and add a sorting feature. 

Any wishes I haven't already closed are things I plan on implementing, but there won't be a new release of KJots until KDE 4.0 comes out (or if support for running KDE4 apps is added to KDE3.5, which might not ever happen).
Comment 8 Stephen Kelly 2008-05-13 22:04:46 UTC
Might be fixed in KDE 4.2.
Comment 9 FiNeX 2008-12-26 14:52:01 UTC
What's the status of this bug on current KDE 4.2 beta2 ?
Comment 10 Stephen Kelly 2008-12-29 16:41:12 UTC
Unchanged. I haven't yet implemented this. Although I did notice some code there attempting to do this, probably written by Jaison.

I only get a crash when I try to use it, and I haven't been able to fix it yet.

I may disable it for 4.2 if I can't make it work reliably.

Comment 11 L_V 2009-01-12 15:05:55 UTC
Not having the ability to sort notes is more than annoying.
I was waiting for Kjots/KDE4.2 for this improvement already identified as a must in .... 2005.

At least a solution/workaround to sort notes directly through kjots files edition should be proposed in the meantime (did not find yet an easy solution).
Comment 12 Stephen Kelly 2009-01-16 15:52:10 UTC
SVN commit 912026 by skelly:

Disable sorting by clicking headers.

CCBUG: 111362



 M  +8 -1      bookshelf.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=912026
Comment 13 L_V 2009-01-17 17:04:42 UTC
Sorting books is part of the solution.
Sorting notes still to be done, or workaround solution to be provided (direct edition of kjots files with a sed command ? )
Comment 14 Stephen Kelly 2009-01-17 19:59:02 UTC
If you really want to sort book right now, I recommend drag and drop books and pages to where you want.

If you want to edit the data files for a more automated sorting, I don't think sed will work. The data files are stored in an xml format currently. You could write a python script using the xml.dom.minidom module for example, but I'm not convinced it is worth it.

I'll try to implement this for 4.3.

Cheers,

Steve.
Comment 15 L_V 2009-03-10 11:43:04 UTC
"[i]If you really want to sort book right now, I recommend drag and drop books and
pages to where you want.[/i]"

The good question is "how much time do you need to sort 200 notes ?"

This is why this bug has been open.
Comment 16 Stephen Kelly 2010-04-18 23:19:06 UTC
SVN commit 1116211 by skelly:

Add actions for sorting kjots items alphabetically and by creation time.

BUG: 111362
BUG: 234715

 M  +53 -1     kjotssortproxymodel.cpp  
 M  +11 -0     kjotssortproxymodel.h  
 M  +2 -1      kjotstreeview.cpp  
 M  +27 -8     kjotswidget.cpp  
 M  +2 -1      kjotswidget.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1116211