diff --git a/jrnl/util.py b/jrnl/util.py index 8aeb1781..c6ea4659 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -121,7 +121,7 @@ def load_config(config_path): def get_text_from_editor(config, template=""): - tmpfile = os.path.join(tempfile.mktemp(prefix="jrnl")) + tmpfile = os.path.join(tempfile.mktemp(prefix="jrnl", suffix=".txt")) with codecs.open(tmpfile, 'w', "utf-8") as f: if template: f.write(template)