From 3e3c325552b285f1f70dc29f508211e0a787ec5d Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 11 Feb 2025 10:42:02 +0000 Subject: [PATCH] open file in new_post script --- scripts/new_post.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/new_post.py b/scripts/new_post.py index cbf2f46..fed31d8 100755 --- a/scripts/new_post.py +++ b/scripts/new_post.py @@ -87,6 +87,7 @@ Path("blog.md").touch() url = f"http://localhost:4100/{now.strftime('%Y/%m/%d/')}{id_from_title}.html" system(f"open {url}") +system(f"code _posts/{filename}") print(f"Now on new branch post/{id_from_title}") print("Make sure to edit, then commit and push changes.") \ No newline at end of file