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