Summary: | "Open Recent": list _all_ files not just from file dialog | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | arne anka <kde-bugs> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph, meven.car, nate |
Priority: | NOR | ||
Version: | 19.12.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=468461 | ||
Latest Commit: | https://invent.kde.org/utilities/kate/commit/c4b20b89954560a8abf1f49024d74a8559128851 | Version Fixed In: | 20.08.0 |
Sentry Crash Report: |
Description
arne anka
2020-04-24 10:10:44 UTC
Yeah, Kate, could add such documents to the global list of recently opened documents. I do the same thing FWIW. Hmm, I tried that with a current Kate version: kate xxxx.txt close reopen => xxxx.txt is in open recent (current kate 20.04 version) Nate, can you reproduce the issue? This is to be expected. Kate needs to call KActivity API to notify opening files from command line (this is done through KFileWidgets/KDocumentRecent when using open/save dialogs). Look at gwenview code as an example : https://github.com/KDE/gwenview/commit/2a5ffe66e1def52f5044aebcf4b6e46392f4f2cc https://github.com/KDE/gwenview/commit/a00eecc78507f48843f719f32e80ae8805a34c15 Are we talking about different things? I thought this request was about the "File -> Open Recent" menu in the application. But this is about some global one? Yes you are write those are two different things. I missed this was about kate own open recent menu. You would need to use KRecentDocument to save it to the Open Recent menu (what KFileWidgets uses), when opening files from the commandline. Once this is done, Activitymanagerd will it pickup and this history will be available whenever recent files are fetched from KActivity (Kickoff, recentlyused:/, soon krunner, taskmanager). Git commit c4b20b89954560a8abf1f49024d74a8559128851 by Christoph Cullmann. Committed on 12/06/2020 at 19:02. Pushed by cullmann into branch 'master'. register files not only at recently opened files menu but globally, too M +15 -0 kate/katemainwindow.cpp M +5 -4 kate/katemainwindow.h M +4 -12 kate/kateviewmanager.cpp https://invent.kde.org/utilities/kate/commit/c4b20b89954560a8abf1f49024d74a8559128851 |