Code to allow opening zed:/channel/1234
Refactored a bit how url arguments are handled to avoid adding too much extra complexity to main.
This commit is contained in:
parent
b258ee5f77
commit
13192fa03c
6 changed files with 272 additions and 149 deletions
|
@ -182,6 +182,7 @@ impl Bundle {
|
|||
kCFStringEncodingUTF8,
|
||||
ptr::null(),
|
||||
));
|
||||
// equivalent to: open zed-cli:... -a /Applications/Zed\ Preview.app
|
||||
let urls_to_open = CFArray::from_copyable(&[url_to_open.as_concrete_TypeRef()]);
|
||||
LSOpenFromURLSpec(
|
||||
&LSLaunchURLSpec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue