From c801cf400c5512452aad6cc8891bd9cbb831d786 Mon Sep 17 00:00:00 2001 From: GitMatt Date: Sun, 19 Jan 2025 09:30:51 -0800 Subject: [PATCH] fix: open for write only, not read. --- src/plan/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plan/path.py b/src/plan/path.py index 4df47b7..2e3e55a 100644 --- a/src/plan/path.py +++ b/src/plan/path.py @@ -16,7 +16,7 @@ def open(plan: Path): if not plan.exists(): plan.touch() - with plan.open("rw") as f: + with plan.open("w") as f: f.write(default()) editor = os.getenv("EDITOR", "nvim") subprocess.run([editor, str(plan)])