From c691d2efcdcf60bcfe56bfb13d40dd86561444d4 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Mon, 22 Feb 2021 20:37:38 -0600 Subject: Add .md extension to temp file --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a914bca..20d1c2f 100755 --- a/main.py +++ b/main.py @@ -109,7 +109,7 @@ def open_editor(action, pathname, initial_body): editor = os.environ['VISUAL'] else: editor = os.environ['EDITOR'] - filename = "/tmp/wikijscmd-"+action+"-"+clean_filename(pathname) + filename = "/tmp/wikijscmd-"+action+"-"+clean_filename(pathname)+".md" if len(initial_body) > 0: with open(filename, "w") as f: f.write(initial_body) -- cgit v1.2.3