View Single Post
Old 08-02-2026, 01:14 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,868
Karma: 7500000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by KevinH View Post
I have found an objective-c code snippet that might be workable. I will run some tests to see how doable this is. But be aware, that the App specific recent files will be inconsistent with any macOS generates until enough time has passed for the history to "catch up", if we do decide to include this.
It was easy enough to try this change on my own Mac as we already have one objective-C .mm file of code used in Sigil on a Mac and so adding that code snippet to it was straightforward.

I then ifdef'd some code in MainWindow.cpp where Sigil keeps track of its own recently opened files to use this snippet but only on a Mac.

If you build your own on MacOS, I have attached a patch and a screenshot showing the dock when *no* Sigil app is running.

Note: I have only opened two epubs in the Sigil version built with this patch, so its recent files in the dock is not as complete as the Sigil recent files menu, but they will sync over longer term use.

So unless these changes cause side-effects, this should be doable.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-08-02 at 1.05.09 PM.png
Views:	9
Size:	275.3 KB
ID:	224819  
Attached Files
File Type: zip dock_recent_files.patch.zip (1.1 KB, 1 views)
KevinH is offline   Reply With Quote