fix: open for write only, not read.
This commit is contained in:
parent
090f4de8f7
commit
c801cf400c
|
@ -16,7 +16,7 @@ def open(plan: Path):
|
||||||
|
|
||||||
if not plan.exists():
|
if not plan.exists():
|
||||||
plan.touch()
|
plan.touch()
|
||||||
with plan.open("rw") as f:
|
with plan.open("w") as f:
|
||||||
f.write(default())
|
f.write(default())
|
||||||
editor = os.getenv("EDITOR", "nvim")
|
editor = os.getenv("EDITOR", "nvim")
|
||||||
subprocess.run([editor, str(plan)])
|
subprocess.run([editor, str(plan)])
|
||||||
|
|
Loading…
Reference in New Issue