Feature request Open

Show applications' recent items in context menu

GΓ‘bor opened

I'm not sure if this is possible, but it would be really nice and help a lot if I could open recently used items from the app icon's (or window's) context menu. (This is what keeps me still using the dock occasionally, otherwise the taskbar almost completely replaced my dock.)

Use case: I have several Obsidian vaults, or open VSCode with various folders. These appear in the dock's app context menu, so that I can launch the app straight with the selected folder.
Currently I can only launch the basic app from the taskbar's app icon, then open the folder (or it opens with the most recent one, which might not be what I'm looking for).

k__p.png

Linda Sobeck Admin

Thanks for the suggestion. I think the feature would be nice. We will definitely look into this!

Linda Sobeck Admin

Hi @GΓ‘bor
I tried to implement this, but this requires reading the entries from the Dock, which makes it flashing for a fraction of a second. Looks very ugly and it is not easy to get this data in an easy way.

Did you ever look into the "Combined Tiles" feature?
If you have multiple VS Studio Windows open, you can arrange them.

If that's not enough, I could still provide you above solution as an opt-in.
I will look more into this, when I have time.

GΓ‘bor

Combined tiles combines the separate windows from the taskbar, keeping which would be important for me. Plus, it will still only show the open windows, so if I want to quickly re-open a closed workspace from my recents, it will still not support that. (The items on my screenshot were not windows, but recents - previously opened folders/vaults/workspaces, which might or might not have a window at the moment. Sorry if I'm using ambiguous terms.)

I found these lists available in ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments and readable even when the app is closed, is that right? The downside is it would need full disk access I believe. :( I'm not sure people would be happy to grant that, or if you can limit it to that specific folder, or if there is any other workaround.

Linda Sobeck Admin

the file you mentioned does help for your app, but every app does that differently ... it is not so easy to implement a solution working for all apps... from my open apps, i had no context menu for any of them ... still thinking about this one ...

GΓ‘bor

If it's impossible to treat all apps the same way, can you start building at least something for common apps and apps that the community requests? If I remember it right, vscode and obsidian are electron based apps, so other electron based apps will share the same method, so this method could already be useful for a relatively wide range of apps.
Personally I would also be happy if there was a way to just manually specify/pin certain recents (typically - folders) for the given apps.

Linda Sobeck Admin

@GΓ‘bor

Like this?

image.png

GΓ‘bor

This looks really promising, Linda!

Linda Sobeck Admin

update is released, happy to hear your feedback

Open to Awaiting release by Linda Sobeck

Awaiting release to Awaiting feedback by Linda Sobeck

GΓ‘bor

Thanks, works fine with my main apps where I was looking for this.
The only one where it's not showing anything is Atlassian Sourcetree.

Awaiting feedback to Open by GΓ‘bor after replying

Continue the conversation

Add a comment

Basic Markdown: **bold**, *italic*, [links](https://example.com), `code`, quotes and lists. Use #59 to link to discussion 59. Pasted discussion URLs are shortened automatically.

Up to 5 files; 10 MiB each, 20 MiB total. PNG, JPG, GIF, WebP, PDF, text, log, crash report, CSV, ZIP, MP4 or MOV. Attachments are public.

Verifying your browser…