johnste/finicky

Can't get finicky to do anything

ToontjeM opened this issue · 2 comments

Installed Finicky from homebrew as well as from release download.
Set default browser to Finicky
Created very basic .finicky.js Syntaxt is ok because gets loaded incorrectty. No errors in the console.
When i open a URL, it opens in the last active browser window. Nothing gets displayed in the Console.

Config:

module.exports = {
  defaultBrowser: "Brave Browser",
  handlers: [
    {
      match: "reddit.com/*",
      browser: () => {
        finicky.log("opening profile 1");
        return {
        name: "Brave Browser",
        profile: "Profile 1",
        }
      }
    },
    {
      match: "twitter.com/*",
      browser: () => {
        finicky.log("opening profile 2");
        return {
          name:"Brave Browser",
          profile: "Profile 2",
        }
      }
    }
  ]
}

My suspicion is that my URL request doesn't get passed to the default browser.

Ventura 13.4.1 (22F82) on MacBook Pro i9.

IIRC your matchers are not correctly and won't match the urls you expect it to.

Try something like match: /twitter\.com/ or match: finicky.matchHostnames("twitter.com") instead

That did it! Thanks!!