New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix open link command in Windows #470 #1504
Fix open link command in Windows #470 #1504
Conversation
ad332a5
to
e4770b5
Compare
@@ -80,8 +80,8 @@ func TestOSCommandOpenFile(t *testing.T) { | |||
{ | |||
"test", | |||
func(name string, arg ...string) *exec.Cmd { | |||
assert.Equal(t, "open", name) | |||
assert.Equal(t, []string{"test"}, arg) | |||
assert.Equal(t, "bash", name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see where the 'bash' comes from in this PR's code changes. Is that being added somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is OSCommand.Platform.Shell
in ShellCommandFromString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
@@ -211,14 +211,14 @@ keybinding: | |||
|
|||
```yaml | |||
os: | |||
openCommand: 'cmd /c "start "" {{filename}}"' | |||
openCommand: 'start "" {{filename}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change backwards compatible with other users who've used the old format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah very well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, couple questions :)
Thanks for making this :) merging |
see #470 and #1497