Bug 227741

Summary: recent files: the kate list of recent files is trimmed down comparing to open dialog recent files list
Product: [Applications] kate Reporter: Maciej Pilichowski <bluedzins>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: christoph, sannythebest95
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Maciej Pilichowski 2010-02-19 21:54:56 UTC
Version:            (using KDE 4.3.3)
Installed from:    SuSE RPMs

There are 2 recent files lists in Kate -- one is its "internal" list, the second is the one of the open dialog.

According to
https://bugs.kde.org/show_bug.cgi?id=193260#c1

count(recent_files_in_Kate)>=count(recent_files_in_open_dialog) should hold. But in case of KDE 4.4 I can run Kate and compare those two lists -- the internal one consists of one item, the open dialog list has several items. So there is example of violation of this invariant.
Comment 1 Andreas Pakulat 2010-02-19 23:04:32 UTC
I'll leave closing this as invalid to a kate dev, but basically its intended behaviour. The recent-files list in kate has not much to do with the list in the open-file-dialog. The latter is global - accross all kate instances. The former is a per-session thing and hence is empty when starting a new session. This is by design and intentional (wether you like it or not) afaik.
Comment 2 Christoph Cullmann 2010-02-20 01:15:33 UTC
As Andreas pointed out and I already before, the two recent files lists are independend, and that will stay that way, by design.
Comment 3 Maciej Pilichowski 2010-02-20 08:31:27 UTC
> I already before, the two recent files lists are independend

No, you didn't. According to your own words those lists should be related -- i.e. open dialog list should be filtered out version of the lists that is kept by Kate.
Comment 4 Andreas Pakulat 2010-02-20 10:34:48 UTC
Actually thats exactly what Dominik said: "The file dialog only knows files it opened, kate knows all files". That means they're independent. The fact that the recent-files list is sometimes shorter has to do with saving it in the session, so with a new session it'll be empty. Again the filedialog is independent from that (as its implemented independently from all KDE apps) so its list is not stored in the kate session.
Comment 5 Maciej Pilichowski 2010-02-20 10:53:04 UTC
"kate knows all files"

A full set A.

"The file dialog only knows files it opened"

the subset (of A) B.

"That means they're independent. "

No. It means all elements from B belong to A. It also mean that might be some elements from A which do not belong to B.
Comment 6 Andreas Pakulat 2010-02-20 13:24:42 UTC
No, B is not a proper subset of A. They're independent Sets, they just happen to share some elements.
Comment 7 Maciej Pilichowski 2010-02-21 08:56:24 UTC
Just for the record -- there is no "independent" set of set <all>.