[feat] Recent Items in Dock Menu
Describe the problem
Right now there is no analogous way of achieving recent-documents with the tauri api.
Describe the solution you'd like
It would be a simple implementation to have a RecentItems resource to which you could add/ push new items. On Mac specifically this would map to Cocoa APIs' NSDocumentController and LSSharedFileList.
Note that the display behaviour should work even when the app is offline/ not running, however when the app is not running the list is static and not modified. Modifications can however occur when the app is started/ closed so this is something to keep in mind.
Perhaps a simple implementation would be to store a JSON array of paths in $APPLOCALDATA/.RecentItems, which then could be combined easily with the store plugin as appHandle.store(". RecentItems"). The good thing about this way of implementing is
Alternatives considered
Right now there are no alternatives to achieve this effect.
Additional context
I was asked to make this an issue and not a discussion: #14455
hi, can i work on this issue?
Neat! If I can assist anyhow, hit me up! I’d gladly contribute.
Neat! If I can assist anyhow, hit me up! I’d gladly contribute.
hi, i'm working on the feature now. the part of adding recent docs using a system api is easy to impl, but i'm suspecious that whether adding the docs to a .RecentItems under $APPLOCALDATA dir is necessary. could you give me more details about it?
i'm suspecious that whether adding the docs to a .RecentItems under $APPLOCALDATA dir is necessary
No it's not, I checked your implementation and it looks right!