Bug 455660 - History list length
Summary: History list length
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 455661 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-20 16:41 UTC by 8HPBJTAFBX2
Modified: 2024-02-25 10:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 8HPBJTAFBX2 2022-06-20 16:41:36 UTC
Hello,
The number of items in the history is hardcoded:
https://invent.kde.org/graphics/okular/-/blob/master/shell/recentitemsmodel.h#L60

I regularly need to consult a set of PDF e-books but they quickly disappear from my history due to me opening PDF from my daily browsing. I'd be helpful to have a longer list or an option to adjust the number of items.

There are others who would agree:
https://askubuntu.com/questions/341965/how-can-i-increase-the-viewing-history-recent-documents-in-okular

Thank you
Comment 1 8HPBJTAFBX2 2022-06-20 16:45:50 UTC
*** Bug 455661 has been marked as a duplicate of this bug. ***
Comment 2 witchhunter 2024-02-25 10:52:59 UTC
I can confirm this. History list length is not hardcoded to 20, as the post imply,  but to 10. Furthermore, the list showed on the initial welcome screen box is different than the one in File>Open_recent when PDFs have the same name but are placed in different folders. Strangely, when opening files that I opened earlier and that are not on either list, the last position opened is remembered correctly. iirc (not sure) the problem on Windows edition is even worse.
Okular 23.08.4