Bug 227741 - recent files: the kate list of recent files is trimmed down comparing to open dialog recent files list
Summary: recent files: the kate list of recent files is trimmed down comparing to open...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 21:54 UTC by Maciej Pilichowski
Modified: 2020-11-21 14:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>.