Built-in editor
By default, files you open from the sidebar, quick open, or a click open in
$EDITOR (falling back to nvim) in a new terminal tab. To use Cortland’s
own editor pane instead, set:
[editor]file_open_mode = "builtin" # "terminal" | "builtin"The built-in editor uses tree-sitter highlighting for Swift, Go, Rust, Python, TypeScript, JavaScript, JSX/TSX, and Markdown.
Live reload
Section titled “Live reload”Agents rewrite files while you read them. With live_reload = true, the
default, a pane with no unsaved edits follows the file and keeps your scroll
position. If you were at the bottom, it stays pinned there, so a note an agent
is appending to keeps scrolling. A pane with unsaved edits shows a bar
offering Reload or Keep Mine instead.
Markdown read mode
Section titled “Markdown read mode”⇧⌘MCtrl+Shift+M switches a .md file between editing
and a rendered view with headings, lists, code, tables, local images, and
[[wikilinks]]. Links to neighboring files open in the same pane, so a folder
of notes reads like a small wiki. Set markdown_read_mode = true to open
Markdown rendered by default.
Format Document
Section titled “Format Document”⇧⌥FCtrl+Shift+Alt+I runs the buffer through the formatter your project already uses and applies the result as one undoable edit. The file isn’t saved. Cortland doesn’t bundle a formatter. It looks for:
- Prettier in the nearest
node_modules/.bin, then on yourPATH swift-format,rustfmt,gofmt, andrufforblackon yourPATH
The formatter runs from the file’s directory, so .prettierrc,
rustfmt.toml, and the like apply as they do on the command line.
Send Selection to Agent
Section titled “Send Selection to Agent”⌘LCtrl+Shift+L opens a small prompt on the selected lines. Type an instruction and it goes to the agent working in that file’s repository, with the path, the line range, and the lines quoted.