Cortex
Search help⌘K

Open a folder, file or page from outside Cortex

Updated 22 November 2026Cortex 0.29.02 min read
On this page

Finder, the Dock and the command line open into the one window.

You do not have to start from inside Cortex. A folder, a file or a web address can be handed to Cortex from Finder, the Dock or Terminal, and it opens in the one Cortex window.

From Terminal

Use open -a Cortex followed by what you want to open:

open -a Cortex ~/Repos/northwind
open -a Cortex https://example.com

A folder opens in the Cortex window. A web address opens as a web tab in the context that is selected. See Web pages as tabs.

From Finder and the Dock

  • A folder. Choose Cortex in Finder's Open With. Cortex registers as an app that opens folders.
  • A file. Drop it on the Cortex icon in the Dock, or open it with Cortex. If it lies inside a context Cortex knows, that context is selected and the file opens as a normal tab, not a preview.

A file that is not inside any context is not opened. Cortex notes it in the log and ignores it.

When the folder is not on your list

If you open a folder that is not one of your contexts, Cortex opens it once. It appears in the sidebar marked "opened once". It is not saved: it stays listed until you quit Cortex, or until you keep it. Choose Add to Contexts in its row's menu, or in the banner over its tabs, to keep it. Cortex never offers to add the folder's parent as anything to search. See Add, remove and organise contexts and What a context is.

One window, always

Everything you open from outside is handled in the window that is already open. Cortex never opens a second main window. If you open something while Cortex is still starting, it waits until your list of contexts is loaded and your last context is back, and then opens it.

Something wrong or missing? Tell us

Open this page in your browser