mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
editor: Save temp files as .md
Probably many people render text in their head to markdown automatically.
This commit is contained in:
parent
2f4289bb3e
commit
db2205d30c
@ -9320,9 +9320,9 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
|
|||||||
return TRUE;
|
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* 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) {
|
if (uuid) {
|
||||||
xmpp_free(ctx, uuid);
|
xmpp_free(ctx, uuid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user