diff --git a/src/plan/path.py b/src/plan/path.py index 2e3e55a..70309eb 100644 --- a/src/plan/path.py +++ b/src/plan/path.py @@ -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)])