Skip to content
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

Merged
merged 4 commits into from Oct 16, 2021

Conversation

Ryooooooga
Copy link
Contributor

see #470 and #1497

pkg/commands/oscommands/os.go Outdated Show resolved Hide resolved
@@ -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)
Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Owner

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}}'
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes if the filename does not contain &. (However, it doesn't work with the current master either)

スクリーンショット 2021-10-13 20 37 45

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah very well

Copy link
Owner

@jesseduffield jesseduffield left a 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 :)

@jesseduffield
Copy link
Owner

Thanks for making this :) merging

@jesseduffield jesseduffield merged commit 4171b76 into jesseduffield:master Oct 16, 2021
@Ryooooooga Ryooooooga deleted the feature/fix-open-link branch October 16, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants