U-C-S / Hurl

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

Rules: anything but automatic, don't know the syntax #91

Closed Jay-o-Way closed 3 months ago

Jay-o-Way commented 4 months ago

When I click a link and Hurl responds, I want to add a rule for the given website/domain.

Jay-o-Way commented 4 months ago

Suggestion for a different approach: add rules to the browser info. Example JSON:

  "Browsers": [
    {
      "Name": "Firefox",
      "ExePath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
    },
    {
      "Name": "Google Chrome",
      "ExePath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
      "Rules": ["g$*.google.com", "github.com"]
    },
    {
      "Name": "Microsoft Edge",
      "ExePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
      "Rules": ["g$*.microsoft.com"]
    }
U-C-S commented 4 months ago

Suggestion for a different approach: add rules to the browser info.

Rules are made with having its own UI to manage them. But the work on it is halted due to issues with WinAppSdk. I am looking to port that UI to wpf soon.

I want them to be reordered, have prioritized one which the way you suggested doesn't solve

The documentation does not mention the id.

id is also something used by UI, It's optional and I am unaware I pushed it to release version.

U-C-S commented 4 months ago

At bare minimum, you must link to https://github.com/U-C-S/Hurl/wiki/Auto-Open-Rules, but ideally this info is available in the UI. Note that wiki says "simple text" uses no prefix, but the JSON expects s$

I will include the link to wiki for now and fix it in the wiki, Thanks

Jay-o-Way commented 4 months ago

Aside from that, it doesn't seem to work for me... Am I doing something wrong? image

U-C-S commented 4 months ago

Honestly, Glob for URLs doesn't work great as I imagined, I will look to create a custom glob-like syntax for URLs

U-C-S commented 3 months ago

Closing this... Updated the docs and #105