raycast / extensions

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

[Google Chrome] Enabled to choose profile #4287

Closed Cat1007 closed 1 year ago

Cat1007 commented 1 year ago

Extension

https://www.raycast.com/Codely/google-chrome

Description

when I have two chrome window using two sperate profiles, one for docs and the other for debug. new tabs alaways open on debug window and other features like search will be operated in debug profile. I want to choose or have a default setting to specify the default profile

Who will benefit from this feature?

No response

Anything else?

No response

raycastbot commented 1 year ago

Thank you for opening this issue!

🔔 @rgomezcasas @bromanko @crisboarna you might want to have a look.

PS: You can close this issue once resolved by posting @raycastbot close this issue.

crisboarna commented 1 year ago

Hi @Cat1007, Unfortunately due to the incomplete implementation of AppleScript support in Chromium makes it impossible to provide a way to select the profile in which a tab is to be open.

At most what can be done is to add a search bar accessory to specify which profile to search in for bookmarks/history, but the opening of a new tab cannot be controlled, it will happen randomly in the top most window of Chrome at the time of the command being run. But if you have only one profile open at a time, it will work as expected.

Alternative is to always open the selected tab in a new window of Chrome in the specified profile. But then you would end up with a lot of open windows, each with one tab.

I still see value in having the ability to search through profiles nevertheless, so I'll look at adding that, knowing that some entries will need a copy paste into desired profile(ex: logged in only on the development profile into Github)

Best that can be done unless somebody completes support for Chromium AppleScript support 🤷

TL;DR: if you only use one profile at a time it is possible, if you use multiple profiles at once, it will open tab on topmost window.

raycastbot commented 1 year ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot commented 1 year ago

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.