Leaf

Install Leaf

It takes about a minute. You need a Mac with Apple silicon and macOS 27 or later.

Download Leaf.dmg Version 1.0 · 8.7 MB · SHA-256 d6cbf404bc0326da8905937ab639e3fc34ddcc62fd9752198e793f05a45f3697

1. Move Leaf to Applications

  1. Open Leaf.dmg from your Downloads folder.
  2. Drag Leaf onto the Applications folder in the window that opens.
  3. Eject the disk image in the Finder sidebar. You can delete Leaf.dmg afterwards.

2. Open it the first time

Leaf isn't notarized by Apple yet, so macOS stops it the first time it opens. You allow it once, and after that it opens like any other app.

  1. Open Leaf from Applications. macOS shows “Leaf” Not Opened and says Apple could not verify it is free of malware. Click Done. Don’t press Return: the highlighted button is Move to Trash.
  2. Open System Settings and choose Privacy & Security.
  3. Scroll down to Security. Next to “Leaf” was blocked to protect your Mac, click Open Anyway.
  4. Confirm with Touch ID or your password. If macOS asks once more, click Open Anyway.

If you use the Terminal, this does the same in one step. It removes the quarantine flag macOS puts on downloaded apps.

xattr -dr com.apple.quarantine /Applications/Leaf.app

3. Choose where your notes live

The first time Leaf opens, it asks where to keep your notes.

Each note is a Markdown file in that folder. To add another folder later, choose File, Open Folder. Each folder shows in the sidebar.

4. Add the leaf command

To open notes from the Terminal, choose Leaf › Install Command Line Tool…. It puts leaf in /usr/local/bin, which every shell already searches, and macOS asks for your password once to write there.

Then try it:

# open a note, made if missing
leaf notes/today.md
# open it in a window of its own
leaf -n plan.md
# add a folder to the sidebar
leaf ~/notes
leaf --help

Updating

Leaf doesn't update itself yet. When a new version is out, download it from this page and drag it to Applications, replacing the old one. Your notes and settings stay as they are. macOS may ask you to allow the new copy once, as in step 2. Leaf, About Leaf shows the version you have.

Uninstalling

  1. Quit Leaf and drag it from Applications to the Trash.
  2. If you added the leaf command, remove it with sudo rm /usr/local/bin/leaf.
  3. To remove Leaf's settings and caches too, run the lines below.
rm -rf ~/Library/Application\ Support/com.irshath.Leaf
rm -rf ~/Library/Caches/com.irshath.Leaf
defaults delete com.irshath.Leaf

The first folder holds the earlier versions of your notes, to-dos you added in To-dos without a note, and any text Leaf could not save to its note, such as when a disk was full. Copy out anything you want to keep first. Your notes in your own folders are not touched.