Bug 41341

Summary: sub folder in knotes ?
Product: [Applications] knotes Reporter: Mathieu Jobin <opensource>
Component: generalAssignee: Michael Brade <brade>
Status: CONFIRMED ---    
Severity: wishlist CC: aroliver, grzegon, koniu1, rdc
Priority: NOR    
Version: 2.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mathieu Jobin 2002-04-20 04:16:35 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           knotes
Version:           2.2 (using KDE 3.0.5 (CVS HEAD >= 20020327))
Severity:          wishlist
Installed from:    compiled sources
Compiler:          gcc version 2.95.3 20010315 (release)
OS:                Linux (i686) release 2.4.18
OS/Compiler notes: 

should be nice to have the oportunity to create notes in sub-folder.

would like to put a lot of stuff in knotes.

but we need a way to manage our notes in knotes.

thanks.



(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Pascal Cavy 2003-01-09 20:43:32 UTC
I support this request too.  
 
Knotes is a very nice program for lots of little notes we need everyday. 
 
Having lots of notes renders usage difficult especially while left clicking on the menubar on 
knotes icons and having all this space listing the notes whithout any organization. 
 
If we could at least organize the notes as a tree folder it would be a great feature. 
 
Thanks for all this nice work. kde is beginning more and more a killer app. :) 
Comment 2 Mathieu Jobin 2003-01-10 00:53:55 UTC
maybe subfolder should be manage like the bookmark are in konqueror.
if any notes have a notes ID, we only have to make an XML that organize those 
ID and a gui app like konqueror have for his bookmark.

after this is done, it will be fun to make operation to a subfolder.
for example:
   erase all notes
   open all notes
   sort notes in subfolder.

Comment 3 Michael Brade 2003-01-11 13:08:16 UTC
Subject: Re:  sub folder in knotes ?

That's cool, thanks for all your comments and ideas! :) I'll definitely 
implement subfolders and categories in KNotes. However, I'll be in Australia 
this year and have to finish iCalendar support first (to make it compile 
again ;) So I'm not sure when it'll be done since I have no idea how much 
time I'll have for coding in Melbourne. Maybe February or March...

Thanks,
   Michael

Comment 4 Mathieu Jobin 2003-06-18 07:12:10 UTC
Now that knotes is include in kontact/kmail/korganizer, what happen to our knotes. 
 
it will have two knotes, one in my mail and one in my systray ? or there is one that 
will die ? and the survivor will do both job. i need to know that, because if i want to 
look into the code and try to implemente subfolder, I would be very disapointed if 
the knotes source code i work on die, and everythings is done elsewhere. 
 
well, in any case this is important. 
 
Comment 5 Michael Brade 2003-06-18 07:39:55 UTC
Subject: Re:  sub folder in knotes ?

It will be some work but both will be merged. KNotes itself in the systray 
will definitely not die and you can start implementing subfolders there if 
you want. If you got somewhere, please send me patches for review. Also, 
don't forget to use the resource framework :-) And once you started spending 
a considerable amount of time, just drop me a note so that I don't start 
working on it at the same time. Because I have holidays now---only between 10 
and 20 days, but that's a start ;)

Thanks,
  Michael

Comment 6 Carsten Schlipf 2004-01-18 14:05:41 UTC
I also would like to have "folders" as a kind of category. However just one top-level subfolder.

Why?

If you sync knotes with your Palm via KPilot this could be the category mapping, which currently is ignored.
Comment 7 ZigZig 2004-04-10 20:40:53 UTC
I also love the "folders" support.. and I would really like an "open all notes" action in subfolders. 

Thanks.  
Comment 8 Mathieu Jobin 2004-05-11 07:19:34 UTC
I was looking at the code of knotes a bit... since I have a bit of time ...

and I have a few question/ideas.

first : the file format notes.ics + libkcal-$UID, is it gonna change again ?
it probably change a lot since kontact integration... i was wondering if its a standard format ? does the format is in use anywhere else in KDE ? in other project ? I'm only thinking to add a PID under notes.ics

I was thinking of that and... i think we dont need to create folders,... we should just give "folders-capabilities" of notes.

instead of having number of functions about folders, "create new, delete, etc."
A folder would simply be a note, which bunch of children... that reduce the amount of change.

to map a note to his new parent, I was thinking of drag & drop,...
if you click on a note, of course, no change, it open the notes
but if you dont release the button, and drag it over a other notes, that write the UID of the parent(dest) in the PID var of the child(src), and you call a redisplay...

the display need a recursive call and... that's about it for the changes...

if we want to change the file format again ??? then, maybe  something in XML would be easier... instead of using parent,.. we would do something like ...

<note>
   <var>blabla</var>
   <note>
      <var>child</var>
   </note>
</note>

i dont know... does anything of this make sens ?

can we right click, drag&drop, etc. on a menu like in use by knotes,... or it would need more change ?
would you guys prefer having folders being a different entity than a note ?

thanks for your feedback

Comment 9 Michael Brade 2004-05-12 11:49:19 UTC
> I was looking at the code of knotes a bit... since I have a bit of time ...
> and I have a few question/ideas.
Excellent.

> first : the file format notes.ics + libkcal-$UID, is it gonna change again?
no, I do not intend to change it anymore.

> it probably change a lot since kontact integration... i was wondering if 
> its a standard format ? does the format is in use anywhere else in KDE ? in
> other project ?
yes, it is standard. The notes.ics is iCalendar, the libkcal-UID is knotes' 
configuration.

> I'm only thinking to add a PID under notes.ics 
no need to, KNotes is a KUniqueApplication.

> I was thinking of that and... i think we dont need to create folders,... we
> should just give "folders-capabilities" of notes.
Definitely.

> instead of having number of functions about folders, "create new, delete,
> etc." A folder would simply be a note, which bunch of children... that
> reduce the amount of change.
Yes, agreed again. That's exactly what my plans are up to now.

> to map a note to his new parent, I was thinking of drag & drop,...
> if you click on a note, of course, no change, it open the notes
> but if you dont release the button, and drag it over a other notes,
...it'll be the new child of the note you droped it on, right? Very nice idea! 
I like that.

> that 
> write the UID of the parent(dest) in the PID var of the child(src), and you
> call a redisplay...
>
> the display need a recursive call and... that's about it for the changes...
However, I don't understand these two sentences at all.

> if we want to change the file format again ??? then, maybe  something in
> XML would be easier... instead of using parent,.. we would do something
> like ...
No, not at all. iCalendar already supports parent-child relations and we need 
to use that. It is also implemented in libkcal (hopefully); if you want to 
learn more about that please see RFC2445.

> can we right click, drag&drop, etc. on a menu like in use by knotes,... or
> it would need more change ?
Not at the moment. Dunno how much work that'd be.

> would you guys prefer having folders being a 
> different entity than a note ?
No, not really. However, I'm not 100% sure we can use the parent-child 
relation _only_, because in the notes list menu I want to have submenus for 
each folder. The folder name can thus be no note itself....

I'll think about this more on LinuxTag and aKademy, I've got too much work for 
uni at the moment.

Thanks heaps for your feedback!

Cheers,
  Michael
Comment 10 Mathieu Jobin 2004-05-13 02:46:55 UTC
> > I'm only thinking to add a PID under notes.ics 
> no need to, KNotes is a KUniqueApplication. 

> > that write the UID of the parent(dest) in the PID var 
> > of the child(src), and you call a redisplay... 
> > 
> > the display need a recursive call and...
> > that's about it for the changes... 
> However, I don't understand these two sentences at all. 
 
Sorry for the confusion with Unix PID ;)

inside notes.ics, there is a field name UID which is like "748519783.336"
by PID I meant Parent UID, which is like the UID of the parent. 
inside the child note, you put the P_UID, if you prefer.
it's obvious of course, was just to document my thought.

and As I describe and you understood,... parent is the destination of the DND, child is the source. (what you drag) : of course.

oh I see. there is a RFC, I'll take a look.

i dont understand the hand of the message, I'll try to figure out the parent-child thing in the RFC and the DND.

thanks for the support.
Comment 11 Mathieu Jobin 2004-05-15 19:42:23 UTC
i'm not sure yet, which one would be easier/best between keeping the parent ID in the child, or the list of children in the parent ?

but KPopupMenu support DND, i think I gonna just need to create a class that inherit KPopupMenu, to implement the DND method.

for the submenu though, i think we can't use the ActionList
KXMLGUIClient::plugActionList() only accept QPtrList, so i guess we gonna have to not use actionlist anymore.

am i right ?


Comment 12 Mathieu Jobin 2004-05-16 04:37:00 UTC
im trying to find some information about KCal::Journal

i finally want to store the list of child in the parent notes

CHILDREN=x,y,z

anyone can give some help, so that I don't break the RFC2445 compliance....

its a bit too much for my small experience.
Comment 13 Michael Brade 2004-05-16 18:14:37 UTC
> i finally want to store the list of child in the parent notes
Yes, definitely agreed.

> anyone can give some help, so that I don't break the RFC2445 compliance....
Not really at the moment, my time is too limited. Just use libkcal and you 
should be alright, it takes care of being RFC2445 compliant. If you need an 
extension to the libkcal-API just implement it or ask for it on 
kde-pim@kde.org.

> for the submenu though, i think we can't use the ActionList
> KXMLGUIClient::plugActionList() only accept QPtrList, so i guess we gonna
> have to not use actionlist anymore. 
Oh, that's bad. So we either need to extend the KXMLGUI class(es) or find a 
substitute...

Thanks!
Comment 14 Mathieu Jobin 2005-01-07 07:50:56 UTC
im sorry, i think this is quite complicated for me.

the logic is all there, but I don't know how to not break iCal stuff and its hard for me to go through the code so... 

Comment 15 Thomas McGuire 2007-10-04 00:07:04 UTC
*** Bug 134627 has been marked as a duplicate of this bug. ***
Comment 16 Thomas McGuire 2007-10-04 00:07:11 UTC
*** Bug 150217 has been marked as a duplicate of this bug. ***
Comment 17 Konrad 2007-10-04 00:34:10 UTC
Hello,

I would like to ask if there are any plans to implement "sub folders" to knotes?

Best regards
Comment 18 FiNeX 2007-12-11 11:51:57 UTC
*** Bug 80876 has been marked as a duplicate of this bug. ***
Comment 19 rfl 2008-12-21 12:10:54 UTC
This features would be still useful. 
Personally, I would like to list the notes with the details, as the mails in a mail folder. 
Now, I use my Draft folder in Kmail as an equivalent for Knotes, but this would be better placed in KNotes. 
The other issues about subfolders would be nice too. 
Comment 20 Mathieu Jobin 2020-12-07 09:07:05 UTC
keeping this open to see the longest living bug alive ! 
will close in 2022 when it celebrate its 20th anniversary

I mean, subfolders in knotes would still be awesome, no?