Giter Club home page Giter Club logo

Comments (6)

liias avatar liias commented on July 20, 2024 4

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.

m47730 avatar m47730 commented on July 20, 2024 1

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.

oc013 avatar oc013 commented on July 20, 2024

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.

oc013 avatar oc013 commented on July 20, 2024

@liias This is cool, look forward to seeing it able to match against parts of the whole url one day, thank you 🙏

from browsers.

liias avatar liias commented on July 20, 2024

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.

liias avatar liias commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.