Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Markpad to open .txt files

Open Guardiancelte opened this issue 3 months ago • 1 comments

What problem would this solve?

Currently I have a lot of .txt files, and for each when opening to markpad I have to manually change the extension to .md

What would you like?

Markpad has become my Notepad replacement, would it be possible to make markpad open .txt files?

  • Bonus for being able to have a prompt to convert that txt doc into a .md.

What have you tried instead?

the extension change

Guardiancelte avatar Aug 08 '26 02:08 Guardiancelte

Good catch — and there is some good news you can use right now: Markpad already opens .txt files. Everything downstream of the picker treats them as ordinary notes: they render, they follow links, they reload when changed on disk, and they save back as .txt. The only thing standing in the way was the Open dialog itself, which spelled out its extension list by hand and listed four of the five extensions the app actually accepts. So your .txt files were there all along, just hidden until you switch the filter to All Files — which understandably reads as "Markpad cannot open these".

#537 fixes that: the dialog now takes its list from the one place the rest of the app already reads, so .txt shows up by default. It will be in the next release.

On the bonus: File → Save As and changing the extension to .md is the conversion — the buffer is already Markdown, so nothing else has to happen to it.

One thing we are deliberately not doing: claiming .txt as a default file association in the installer. Markpad used to, and it took the Text Document association away from Notepad for everyone who installed it (#179, fixed in #302). Being able to open a file and owning its double-click are different things, and the second one is not ours to take. "Open with → Markpad" and dragging a .txt onto the window both keep working.

Closing as fixed by #537 — comment if the picker still hides them once that release is out.

PathGao avatar Aug 08 '26 03:08 PathGao