From 02dde146307110104f0317e7888882100db930c4 Mon Sep 17 00:00:00 2001 From: GitMatt Date: Sun, 19 Jan 2025 12:10:33 -0800 Subject: [PATCH] fix: cd to .plan dir before opening in editor. --- src/plan/path.py | 1 + 1 file changed, 1 insertion(+) 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)])