fabiospampinato / vscode-open-in-application

Open an arbitrary file in its default app, or the app you want.
MIT License
19 stars 0 forks source link

Set a default application to use #23

Open yougotwill opened 3 days ago

yougotwill commented 3 days ago

It would be nice to set a default application for opening things. My use case is opening files or folders in my file explorer of choice (Nimble Commander) and not Finder which is the default on macOS. I could make a PR if you approve the idea.

For example something like this in the settings

  "openInApplication.applications": {
    // default application to open files or folders with
    "*": [
      "Nimble Commander"
    ],
    // overrides the above settings
    "html": [
      "Google Chrome",
      "Firefox Developer Edition",
      "Firefox",
      "Safari",
      "Opera",
      "Brave"
    ]
  },
yougotwill commented 3 days ago

Having said that I discovered using folder key from looking at the source and that gets me halfway there. Thank you!