Multi-platform support!

This commit is contained in:
2023-07-23 18:32:43 -04:00
parent 49b11741cb
commit ac2f526d8a
3 changed files with 70 additions and 14 deletions

View File

@@ -18,11 +18,23 @@
"sidecar": true,
"execute": true,
"open": true,
"scope": [{
"name" : "open-link",
"cmd": "powershell.exe",
"args": ["-Command", "Start-Process", {"validator": "\\S+"}]
}]
"scope": [
{
"name" : "open-link-win",
"cmd": "powershell.exe",
"args": ["-Command", "Start-Process", {"validator": "\\S+"}]
},
{
"name" : "open-link-linux",
"cmd": "/bin/sh",
"args": ["-c", "xdg-open", {"validator": "\\S+"}]
},
{
"name" : "open-link-macos",
"cmd": "/bin/bash",
"args": ["-c", "open", {"validator": "\\S+"}]
}
]
},
"fs": {
"all": true,
@@ -30,6 +42,9 @@
},
"path": {
"all": true
},
"os": {
"all": true
}
},
"bundle": {