summaryrefslogtreecommitdiff
path: root/internal/task/task.go
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 10:00:43 +0300
committerGitHub <noreply@github.com>2025-06-20 10:00:43 +0300
commit1fcbcc8350bb3df1d304cf720a7f26a210901921 (patch)
treeef0e77f54d023f8ea5d016a34da17126d27d1b9e /internal/task/task.go
parent60398ffcebe42b74a1e09db972fe16597b7d6eca (diff)
parent81d974621267ae9d1f50e3d7548b6ed039758ce8 (diff)
Merge pull request #15 from snonux/codex/fix-editor-open-command-and-text-alignment
Fix editor command and cell alignment
Diffstat (limited to 'internal/task/task.go')
-rw-r--r--internal/task/task.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index 12671a9..67cb677 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -4,6 +4,7 @@ import (
"bufio"
"bytes"
"encoding/json"
+ "os"
"os/exec"
"strconv"
)
@@ -146,7 +147,11 @@ func Denotate(id int, annoID int) error {
// The caller is responsible for running the command, typically via
// tea.ExecProcess so that the terminal state is properly managed.
func EditCmd(id int) *exec.Cmd {
- return exec.Command("task", strconv.Itoa(id), "edit")
+ cmd := exec.Command("task", strconv.Itoa(id), "edit")
+ cmd.Stdin = os.Stdin
+ cmd.Stdout = os.Stdout
+ cmd.Stderr = os.Stderr
+ return cmd
}
// Edit opens the task in an editor for manual modification.