Kate how to add automatic file extension .txt

Is it possible to add a default “.txt” file extension in Kate. I’m using version 23.08.5.
If I change the input mode via Tools > Mode > Markdown then “.md” isn’t added when I save a new file either.
Is this caused by the “Automatically select filename extension” checkbox being disabled in the Save File dialog?

If you know how to change the default text input mode to Markup/Markdown that would be great too.

Thanks for your help. :smiley:

This seems the same question as the question I asked a few years ago.

Is this a bug or something?

That is just not implemented, if somebody wants to have that, patches are welcome.

I would add to that if it is implemented maybe it should consider the highlight mode (if any).

The use case is that you may work on a new file and manually set the highlighting mode before saving it (this is something that I usually do).

BTW: I’ll buy a beer/coffee/whatever to the developer who will implement it. Just remind me because I’ll probably miss it :slight_smile:

Yes, using the hightlighting mode and deriving the suffix from the wildcard we have there would be the way to go.