From db2205d30c38fa37ee833db4d34be128f63cccba Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 16 Apr 2021 22:18:01 +0200 Subject: editor: Save temp files as .md Probably many people render text in their head to markdown automatically. --- src/command/cmd_funcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command/cmd_funcs.c') diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index fc38a2b0..8c9377f8 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9320,9 +9320,9 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args) return TRUE; } - // build temp file name. Example: /tmp/profanity-f2f271dd-98c8-4118-8d47-3bd49c8e2e63.txt + // build temp file name. Example: /tmp/profanity-f2f271dd-98c8-4118-8d47-3bd49c8e2e63.md char* uuid = xmpp_uuid_gen(ctx); - char* filename = g_strdup_printf("%s%s%s.txt", g_get_tmp_dir(), "/profanity-", uuid); + char* filename = g_strdup_printf("%s%s%s.md", g_get_tmp_dir(), "/profanity-", uuid); if (uuid) { xmpp_free(ctx, uuid); } -- cgit 1.4.1-2-gfad0