raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.06k stars 2.78k forks source link

[Pins] Setting for folders to open as new tab #13268

Open dudido opened 2 weeks ago

dudido commented 2 weeks ago

Extension

https://www.raycast.com/HelloImSteven/pins

Description

I would like to be able to set an option for folders to open them as new tabs rather than separate windows. I guess they should be added to the most recent finder window, if several are open.

Who will benefit from this feature?

Anyone frequently opening sets of folders.

Anything else?

No response

raycastbot commented 2 weeks ago

Thank you for opening this issue!

🔔 @SKaplanOfficial @pernielsentikaer you might want to have a look.

💡 Author and Contributors commands The author and contributors of `HelloImSteven/pins` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
SKaplanOfficial commented 2 weeks ago

It respects Finder's "Open folders in new tabs instead of new windows" setting. If you have that enabled, it will do exactly as you've described. I'm not sure a separate setting for Pins is needed, but let me know if you think otherwise.

dudido commented 1 week ago

On my system, Finder's "Open folders in new tabs instead of new windows" setting is not respected. It is turned on, but each folder is opened as a separate windows (not tabs of a single window) and not even when a finder window with tabs is already open…

Notwithstanding this potential bug, I think it would be useful to set a default and be able to tune the setting per folder.

SKaplanOfficial commented 1 week ago

The bug would be with Raycast's open() function, as Pins just calls that with the path to the folder. I'll submit a bug report on Slack. (edit: submitted here)

I can look into adding a per-folder setting that uses AppleScript or something to ensure opening in the same-window.