finicky icon indicating copy to clipboard operation
finicky copied to clipboard

feature request: capture file://* links and perform action (regex, ..)

Open floriandierickx opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I need to parse links in the form file://* (and parse them through a regex-replace script to open in a browser), as my mac is not able to open these links natively.

Describe the solution you'd like I would like to be able to parse file://* links (and subsequently perform a regex script that rearranges parts of the url to open in a browser).

Describe alternatives you've considered Applescript, Automator, ... but got referred to this wonderful app through https://apple.stackexchange.com/a/391486

Additional context As a newbie, I tried out some scripts to see if the app could be able to parse these links. Observation at the moment: Finicky seems currently unable to parse these links (the console mentions Finicky only understands https:// and http:// urls.

Any ideas if this would be possible, and how to implement it? Thanks in advance for the feedback and your thoughts!

test script:

module.exports = {
  defaultBrowser: "Safari",      
  handlers: [
    {
      match: /^file?:\/\/.*$/,
      browser: "Safari"
    }
  ]
}

floriandierickx avatar Jun 24 '21 20:06 floriandierickx

Another use case for this:

Support for file:// URLs in Finicky would be handy to intercept DropBox links like file:///private/var/folders/7r/36k441tx5p35hzfv8fxrnr8c0000gn/T/dbxlpkl63l09.html that it uses when opening un-synched files through its native app.

vlukashov avatar Apr 04 '22 07:04 vlukashov