Comments (6)
Hey. Glad to see some interest in this feature.
Btw, there is an unstable (as in, it can break in future) config api to configure it already, let me copy the comment from #12 (comment)
In config.json
(see ⋮
->About
to see configuration path) you can add the rules section.
rules: [
{
"url_pattern": "https://exact.domain.com"
"profile": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome#Profile 1"
}
]
url_pattern
can currently detect only the domain (no wildcards)profile
has to be in form of<browser binary path>#<the profile id>
You can find profile names from the cache file (again see the About dialog for cache path) or in that same config file if you have changed order for the browser explicitly.
It would also make sense to add a feature to have a fallback/default if no other rules match.
I think I will collect requirements for sometime until we figure out the best usecases while preserving easy configuration options.
from browsers.
I also like to extend @GRbit proposal with an optional catch-all default.
This is my use case:
I normally use firefox for everything but i want to use chrome for google meeting because of the virtual background support, so at the moment i have a really stupid script that do this but i like to switch to browsers :-)
I understand is not the purpose that bring life to browsers but i still think could be good feature for broader adoption
from browsers.
I also have the same use case of separating work from personal with different browsers.
I started reading the source code but it will take me a bit to figure out Rust I think. With inspiration from this conversation, I was able to come up with a simple bash based system for Ubuntu at least: https://github.com/oc013/browser-redirect
Would be cool to see the general idea built into this app.
from browsers.
@liias This is cool, look forward to seeing it able to match against parts of the whole url one day, thank you 🙏
from browsers.
Some updates on this: with version 0.3.4 I added support for patterns in the rules and also a support for default browser if no rule is matched. You can see some examples on using patterns and setting a default browser at #34
Feel free to try it out, there might be bugs. In future there will be a GUI for this.
from browsers.
I will close this for now, as it should fulfill the minimum requirement. Feel free to open new feature request/issue per improvement.
from browsers.
Related Issues (20)
- Documentation for config.json or an example HOT 2
- Window appearing beneath Snap application HOT 6
- Rules in config.json do not work HOT 10
- Icon-related crash on Linux regression of #12 HOT 4
- Donating to Browsers HOT 1
- Browsers seems to cause Arc to crash HOT 5
- Enabling quit_on_lost_focus makes the "About" dialog not functional 😄 HOT 1
- Windows false positive match for `Trojan:Win32/Bearfoos.A!ml` HOT 1
- %THIS_DIR% not always set correctly. Uncaught error. HOT 5
- Nix(OS) support HOT 8
- Browsers still shows uninstalled apps/profiles, even after a refresh HOT 2
- Since updating to 0.5.2, Arc does not open automatically based on rules in config.json HOT 2
- Mullvad support HOT 6
- iCloud Sync HOT 1
- Match google oauth client_id HOT 2
- Trying to create a rule that opens all links from Mail in Safari HOT 4
- Window too small on HiDPI screens HOT 2
- Popup isnt shown in Intellj Idea HOT 2
- Safari doesn't "open" automatically anymore HOT 4
- Flatpak browser all end up with the same executable_path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browsers.