Make Writ the app for .md and .txt
Once per file type. After that a double-click in Finder or Explorer opens the file in Writ.
macOS
- Open Settings (⌘,), Integrations. Open these file types with Writ has a box per group: Plain text & logs, Markdown, Config & data, Source code. Tick the groups you want; a ticked box stays ticked while Writ holds the type.
- macOS keeps the choice per type, so claiming Markdown does not change what opens
.txt. To hand a type to another app, pick that app in Finder: Get Info on one file, Open with, Change All.
Windows
- Right-click any
.mdfile, Open with, Choose another app. - Pick Writ and tick "Always use this app".
- Repeat for
.txtor any other extension you want here.
Linux
The .deb installs a desktop entry named Writ.desktop, so Writ appears in your file manager's Open With list. To make it the default from a terminal:
xdg-mime default Writ.desktop text/markdown
xdg-mime default Writ.desktop text/plain With the AppImage, register it first with AppImageLauncher (or any integrator that writes a desktop entry), then run the same commands with the name it created.
What opening a file means
The file opens in a tab under its own name and is saved back to its own path as you edit. If the file changes on disk while it has unsaved edits, Writ asks before replacing them. Closing the tab saves your last edits and never deletes the file.
Related: the default app in the docs.