As said in a previous post, I use that widget in order to have on the desktop a list of recent files. —That is mainly because I have decided to use Krunner as application launcher (by simply typing when desktop has focus!) and to add on desktop a few widgets that provide the features I need from an application launcher: seeing recent files as quickly as possible being one of them.—
The maintainer of this widget (thevladsoft) has very kindly and promptly answered my requests to have the recent files displayed as a list, not just a grid, and to have the list refreshed more often!
In order to achieve a proper list of recent files I had to change a few defaults:
set the widget to display as “location” recentlyused:/files/?limit=34
, make the sorting by “date” and in a “descending” order, view mode by “list”, and force refresh of folder:
Although this tool is now very useful to me, I have noticed that it doesn’t in fact show the recently accessed files, but just the recently modified ones!
That is rather odd, because recently accessed/used files is what one expects to see when looking for “recent files” (the kio is called recentlyused
after all!), the modified files being just a part of the accessed ones: we can access without modifying but not modify without accessing. Also, other tools that show recent files, namely application launchers, show recently accessed files (for example kicker).
Basically, this widget doesn’t show all the recent files, just the ones modified (or newly created, downloaded, etc).
Dolphin makes the difference between used/accessed and modified files through two different columns: “Accessed” and “Modified”. - The difference can be rather big. For example, reading through many pdf files and trying to find them in a recent files list, they appear only in the “Accessed” column, not in the other, and thus not in the widget:
If one pdf or other appears in the widget, it is just because it was also recently created or downloaded, but not because I have read it recently.
Asking again the maintainer about this, it seems a rather tricky problem. He said that:
this widget is based on an already existing widget of plasma. Things that can be done on Dolphin are not necessarily possible on it. Or it could be, but KDE’s documentation is not very helpful in this sense.
A quick search and some meddling with the code didn’t allow me to implement what you ask
But I hope this is nevertheless possible to implement, given that application launchers do display used recent files rather commonly, based on the option with that very name (recentlyused
). It’s not just Dolphin that can do that, but many widgets too.
I cannot read or write code, so my efforts to look at files like contents/config/main.xml
in kickoff and this widget’s folder (its folder is named org.kde.desktopcontainment-trans
) didn’t lead to anything.
All I could gather, considering the launchers that show recent files by access, is that I see a difference between Kickoff (the default application launcher) and others (Kicker, Onze Menu, Menu X, EQ Application Launcher): Kicker also shows recent locations (that is, it is based on recentlyused:
, while the others on recentlyused:/files/
. But the difference in sorting is made by a different parameter that I ignore.
Can someone help?