tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Recent Items in Dock Menu

Open Anatoly03 opened this issue 1 month ago • 4 comments

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

Anatoly03 avatar Nov 13 '25 12:11 Anatoly03

hi, can i work on this issue?

Kokoro2336 avatar Nov 21 '25 14:11 Kokoro2336

Neat! If I can assist anyhow, hit me up! I’d gladly contribute.

Anatoly03 avatar Nov 22 '25 08:11 Anatoly03

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?

Kokoro2336 avatar Nov 23 '25 07:11 Kokoro2336

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!

Anatoly03 avatar Dec 07 '25 15:12 Anatoly03