Link to a note, at a line, from a calendar, a task or a launcher

Checked November 2026 on macOS 26.

The meeting is in your calendar and its notes are in your notes app. The task says "follow up on the budget", and the budget is line 40 of a long note. A link between them saves the hunt.

Every Markdown note is a file, so it has a file address:

file:///Users/you/Notes/Budget.md

Paste that into a calendar event or a task and clicking it opens the note in whatever app opens .md files on your Mac. It's simple and it works with any editor. It has two limits: it opens the file at the top, and it breaks as soon as the note moves or your notes folder changes place.

To get the full path, select the file in the Finder and press ⌥⌘C.

Many editors have a URL scheme: links that start with the app's name and open a note inside it. They usually find the note by name or by its place in your notes folder rather than by its full path, so they survive more moves, and some can go to a line.

In Coffee, Note › Copy Coffee Link copies a link to the note you're in that opens it at your caret's line:

coffee://open?path=Trips/Day%20one.md&line=12

path is the note's place in your library and line counts from 1. Put the caret on the line you'll want, copy the link, and paste it into the calendar event, the task or another note. Clicking it brings Coffee forward with that note open at that line.

You can also write a link by title:

coffee://open?title=Weekly%20review

Spaces become %20. The same Note menu has Copy Path, for Trips/Day one.md, and Copy Full Path, for the whole path on your Mac.

A link only opens notes inside your library. If the note has been moved or renamed since you copied the link, Coffee says it can't find it rather than opening something else.

From a launcher or a script

A coffee:// link works anywhere a link can be opened, so Raycast, Alfred, Keyboard Maestro and Shortcuts on the Mac can open a note without anything to install.

In Raycast or Alfred, make a quicklink with the address of the note you open every day, such as coffee://open?title=Today. From Terminal:

open "coffee://open?title=Weekly%20review"

In Shortcuts on the Mac, use the Open URLs action with the link.

Questions

Can I link to a heading instead of a line?

Inside your notes, a link such as [[Budget#March]] goes to a heading. From another app, a Coffee link goes to a line, so put the caret on the heading before you copy it.

What happens if I add lines above the one I linked?

The link opens at the line number it was given, so the place it opens moves down with every line added above. For a note that changes a lot, link to the note by title and use search inside it.

Do Coffee links work in a calendar event?

Yes, wherever the calendar lets you click a link: in the event's URL field or in its notes. Calendar apps that only show plain text won't make it clickable.

Do I need to install anything?

No. Coffee handles coffee:// links once it's on your Mac.