U-C-S / Hurl

Choose the browser on the click of a link
MIT License
252 stars 8 forks source link

cant get this regular work. #93

Closed mannfuri closed 4 months ago

mannfuri commented 4 months ago
  "Rulesets": [
    {
      "Id": 1304,
      "Rules": [
        "g$*.atlassian.net*"
      ],
      "BrowserName": "Firefox Developer Edition"
    }
  ]

i wanna open all url from atlassian.net with my Firefox Developer Edition

U-C-S commented 4 months ago

Can you post your entire UserSettings.json here ?? probably an issue with same BrowserName not existing under Browsers property

also, Your rule only opens URLs like https://abcd.atlassian.net/blah and does not work with https://atlassian.net/blah

mannfuri commented 4 months ago

Can you post your entire UserSettings.json here ?? probably an issue with same BrowserName not existing under Browsers property

also, Your rule only opens URLs like https://abcd.atlassian.net/blah and does not work with https://atlassian.net/blah

thanks for your reply! ill post my json file when i arrive home. thanks again!

mannfuri commented 4 months ago
{
  "$schema": "https://raw.githubusercontent.com/U-C-S/Hurl/main/Utils/UserSettings.schema.json",
  "LastUpdated": "2024/3/4 20:27:16",
  "Browsers": [
    {
      "Name": "Firefox",
      "ExePath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
    },
    {
      "Name": "Google Chrome",
      "ExePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
    },
    {
      "Name": "Firefox Developer Edition",
      "ExePath": "C:\\Program Files\\Firefox Developer Edition\\firefox.exe"
    },
    {
      "Name": "Microsoft Edge",
      "ExePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
    }
  ],
  "AppSettings": {
    "LaunchUnderMouse": false,
    "NoWhiteBorder": false,
    "BackgroundType": "mica",
    "WindowSize": [
      560,
      220
    ]
  },
  "Rulesets": [
    {
      "Id": 1304,
      "Rules": [
        "g$*atlassian.net*",
        "g$*google.com*"
      ],
      "BrowserName": "Firefox Developer Edition"
    },
    {
      "Id": 7940,
      "Rules": [
        "g$*google.com"
      ],
      "BrowserName": "Firefox Developer Edition"
    }
  ]
}

this is how my C:\Users\username\AppData\Roaming\Hurl\UserSettings.json looks like.

with this setting file.

With this setting file, I am unable to open URLs containing GOOGLE.COM, please refer to the screen recording video.

https://github.com/U-C-S/Hurl/assets/91338215/645e2fce-20f2-4e70-a64d-fdc8f89ef8a8

U-C-S commented 4 months ago

Test it here: https://www.digitalocean.com/community/tools/glob?comments=true&glob=%2A%2F%2F%2Agoogle.com%2F%2A&matches=false&tests=https%3A%2F%2Fwww.google.com%2Fdasd

image

U-C-S commented 4 months ago

I realize Glob have a severe limitation with /s (i.e it doesn't include / as part of *) and others Might have to create own glob like syntax without the limitations

mannfuri commented 4 months ago
{
  "$schema": "https://raw.githubusercontent.com/U-C-S/Hurl/main/Utils/UserSettings.schema.json",
  "LastUpdated": "2024/3/4 20:27:16",
  "Browsers": [
    {
      "Name": "Firefox",
      "ExePath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
    },
    {
      "Name": "Google Chrome",
      "ExePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
    },
    {
      "Name": "Firefox Developer Edition",
      "ExePath": "C:\\Program Files\\Firefox Developer Edition\\firefox.exe"
    },
    {
      "Name": "Microsoft Edge",
      "ExePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
    }
  ],
  "AppSettings": {
    "LaunchUnderMouse": false,
    "NoWhiteBorder": false,
    "BackgroundType": "mica",
    "WindowSize": [
      560,
      220
    ]
  },
  "Rulesets": [
    {
      "Id": 7940,
      "Rules": ["r$.*google\\.com.*"],
      "BrowserName": "Firefox Developer Edition"
    },
    {
      "Id": 7941,
      "Rules": ["r$.*atlassian\\.net.*"],
      "BrowserName": "Firefox Developer Edition"
    }
  ]
}{
  "$schema": "https://raw.githubusercontent.com/U-C-S/Hurl/main/Utils/UserSettings.schema.json",
  "LastUpdated": "2024/3/4 20:27:16",
  "Browsers": [
    {
      "Name": "Firefox",
      "ExePath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
    },
    {
      "Name": "Google Chrome",
      "ExePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
    },
    {
      "Name": "Firefox Developer Edition",
      "ExePath": "C:\\Program Files\\Firefox Developer Edition\\firefox.exe"
    },
    {
      "Name": "Microsoft Edge",
      "ExePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
    }
  ],
  "AppSettings": {
    "LaunchUnderMouse": false,
    "NoWhiteBorder": false,
    "BackgroundType": "mica",
    "WindowSize": [
      560,
      220
    ]
  },
  "Rulesets": [
    {
      "Id": 7940,
      "Rules": ["r$.*google\\.com.*"],
      "BrowserName": "Firefox Developer Edition"
    },
    {
      "Id": 7941,
      "Rules": ["r$.*atlassian\\.net.*"],
      "BrowserName": "Firefox Developer Edition"
    }
  ]
}

finaly get this work! thanks for your help sir.