We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e939463 commit 64ad7f4Copy full SHA for 64ad7f4
internal/adapter/editor/editor.go
@@ -39,7 +39,7 @@ func (e *Editor) Open(paths ...string) error {
39
// initial note content to `zk new`. Without this, Vim doesn't work
40
// properly in this case.
41
// See https://github.com/zk-org/zk/issues/4
42
- cmd := executil.CommandFromString(e.editor + " " + shellquote.Join(paths...) + " </dev/tty")
+ cmd := executil.CommandFromString(e.editor + " " + shellquote.Join(paths...) + CMD_SUFFIX)
43
cmd.Stdin = os.Stdin
44
cmd.Stdout = os.Stdout
45
cmd.Stderr = os.Stderr
internal/adapter/editor/suffix-windows.go
@@ -0,0 +1,5 @@
1
+//go:build windows
2
+
3
+package editor
4
5
+const CMD_SUFFIX = ""
internal/adapter/editor/suffix.go
+//go:build !windows
+const CMD_SUFFIX = " </dev/tty"
0 commit comments