fix: cd to .plan dir before opening in editor.
This commit is contained in:
parent
c801cf400c
commit
02dde14630
|
@ -19,4 +19,5 @@ def open(plan: Path):
|
|||
with plan.open("w") as f:
|
||||
f.write(default())
|
||||
editor = os.getenv("EDITOR", "nvim")
|
||||
os.chdir(Path().home() / ".plan")
|
||||
subprocess.run([editor, str(plan)])
|
||||
|
|
Loading…
Reference in New Issue