How to keep a journal in plain Markdown files on the Mac
Checked November 2026 against Coffee's Journal window and Today's Note command in the app's own code. The Terminal commands use the tools that come with macOS.
A Markdown journal is one plain text file per day, named by its date, in a folder of its own. You write in it with any editor, and the files open in any other editor, today or in twenty years. This page covers how to set one up, how to keep writing, and how to read back through it: what you wrote on this day last year, every entry that mentions a person, every entry with a tag. Most of it works with any editor and the Mac's Terminal. The last part shows Coffee's Journal window, which does the looking back for you.
If you want a template for a working day, with tasks and a list of what you spent, see a daily note template in Markdown. This page is about the other kind of daily writing: what happened, what you thought about it, and finding it again later.
Why plain files suit a journal
A journal is the one thing you write that gets more useful the older it is. That makes the file format matter more than the app:
- A
.mdfile is text. TextEdit, Terminal, any Markdown editor and any future one can read it. Nothing has to be exported first. - One file per day means an entry is easy to find, copy, back up or delete on its own, and a sync conflict only ever touches one day.
- The folder is yours. It sits in iCloud Drive, on an external drive, or wherever you keep files, and Time Machine backs it up with everything else.
- Tools you already have work on it. Spotlight, Finder and Terminal can all search it, as below.
Setting it up
Make a folder called Journal. Name each entry by its date, year first:
Journal/
2026-11-20.md
2026-11-21.md
2026-11-22.md
Year first, 2026-11-22, sorts in date order by name and means the same date in every country. If you prefer something readable such as 22 November 2026.md, that works too, but sorted by name the folder won't be in date order. If a single folder gets long after a few years, put each year in its own subfolder.
An entry needs nothing more than a heading and some text:
# 22 November 2026
Long walk by the river before work. Rui called about the move. #family
Finished the first draft of the talk. It's too long, but the shape is right. #work
The #family and #work words are tags. Written in the text like this, most Markdown editors pick them up, and a plain search finds them anywhere. You can also put tags in front matter at the top of the file, though not every tool reads them from there. There's more on choosing between the two in folders or tags for Markdown notes.
Building the habit
Journals mostly stop for one reason: a few missed days turn into a missed month. Some things that help:
- Keep the bar low. One sentence counts as an entry. A short entry today is worth more than a long one you never write.
- Write at the same moment each day, after something you already do, such as the first coffee or closing the laptop.
- Make the entry quick to open. A shortcut, a bookmark or a command that opens today's file, so starting takes one keystroke.
- Count the days in a row, if numbers motivate you. If they make a missed day feel like failure, don't. Picking up again tomorrow matters more than the run.
Questions to start with
A blank page is the hardest part. A question gets you past it. Some to try:
- What surprised you today?
- What took more energy than it should have?
- What's one thing you'd like to remember about today?
- What would make tomorrow a good day?
- What did you change your mind about recently?
- If today had a title, what would it be?
Write the question in bold at the end of the entry and answer underneath, so when you read it back you know what you were answering. Keep a list of questions in a note of its own and go through it in order, or pick one at random.
Looking back: on this day
Reading what you wrote a year ago is where a journal pays you back. With year-first file names, Terminal finds every entry from this date in earlier years. From inside your Journal folder:
ls -R | grep -- '-11-22\.md$'
Change the month and day to today's. The -R looks inside year subfolders too. To read them all one after another:
find . -name '*-11-22.md' | sort | xargs cat
Searching old entries
Every entry that mentions a word, newest name last:
grep -ril 'lisbon' . | sort
-i ignores capitals and -l lists only the file names. Drop the -l to see the lines themselves. Spotlight finds the same files from anywhere on the Mac, if your Journal folder isn't excluded from it. There's more in finding Markdown notes with Spotlight and Quick Look.
Tags and numbers
The tags you use most, with how many times each appears:
grep -rhoE '#[A-Za-z][A-Za-z0-9_/-]*' . | sort | uniq -c | sort -rn
The pattern needs a letter straight after the #, so headings such as # 22 November 2026 aren't counted. Every entry with a tag:
grep -rl '#family' . | sort
How many entries you've written this year, and how many words:
ls -R | grep -c '^2026-.*\.md$'
find . -name '2026-*.md' | xargs cat | wc -w
None of this changes the files. If you also want to see how an entry looked before you edited it, see version history for Markdown without Git.
A journal in Coffee
Coffee is a Mac app for notes kept as plain Markdown files in a folder you choose. Its Journal window, Window › Journal, puts the looking back above in one place, read from the same files. There's a picture of the window in Coffee's help on the Journal.
Which notes are entries. Every note whose title is a date: "22 November 2026", "November 22, 2026", "2026-11-22" and "22 Nov 2026" all count, with or without the weekday in front. These are the same notes File › Today's Note (⌘T) opens or makes, so if you already keep daily notes in Coffee, your journal is already there. Entries can be in any folder of your library.
At the top. How many days in a row you've written, counting up to today, or up to yesterday if today has no entry yet, and your longest run. A dot for each day of this week, Monday to Sunday, filled where there's an entry. This year's entries and words.
A question for today. One question a day, the same all day. Write about it opens today's entry, or makes it the way Today's Note does, and adds the question at the end in bold, ready to answer. Another shows a different question.
On this day. What you wrote on the same date one, three and six months ago, and one, two and three years ago. A date a month doesn't have, such as 31 February, is skipped rather than moved.
Every entry, by month. Each entry shows its title, the start of its text, its word count, how many pictures it has and its tags. Click one to open it. The search box narrows the list to entries whose title, opening lines or tags contain every word you type. The tag buttons show your eight most used tags, written in the text as #tag, with how many entries have each, and a click shows only those entries. For a search through the whole text of every note, use Note › Search All Notes (⌘K).
The Journal window doesn't move, rename or rewrite your entries. The only thing it adds to a file is the question, when you click Write about it. Everything stays a .md file in your folder, so the shell commands on this page work on a Coffee journal too, and so does any other editor. To have each day's calendar events in the entry as well, see calendar events and reminders in a daily note.
Coffee runs on a Mac with macOS 15 or later, and on iPhone and iPad. It has 14 days free without a card, then €3 a month, €29 a year, or €79 once with two years of updates.
Questions
Is Markdown good for journaling?
Yes. A journal is meant to last, and Markdown files are plain text that any editor can open. Headings, bold and lists are there when you want them, and they read fine as plain text when you don't.
How should I name journal files?
By date, year first, such as 2026-11-22.md. The folder then sorts in date order, and finding every entry from one date in past years is a one-line search.
How do I see what I wrote on this day in past years?
With year-first names, search the folder for files ending in today's month and day, such as ls -R | grep -- '-11-22\.md$' in Terminal. In Coffee, Window › Journal shows On this day for one, three and six months and one, two and three years ago.
Is a journal different from a daily note?
They can be the same file. A daily note tends to hold the day's tasks and notes, and a journal what happened and what you thought. Coffee's Journal counts any note titled with a date, so one file a day can be both.
Does Coffee's Journal count my streak?
Yes. It shows how many days in a row you've written, up to today or up to yesterday if you haven't written today yet, and your longest run.