foam outline
Show the heading structure of a note.
foam outline (<identifier> | --path <path>) [options]Prints the headings in a note in order, indented to reflect their level. Useful for getting a quick overview of a long note’s structure.
Options
Section titled “Options”| Option | Description |
|---|---|
--path <path> | Target note by exact file path instead of identifier |
--workspace <dir> | Workspace root (default: FOAM_WORKSPACE env var, then current directory) |
--format <fmt> | Output format: text (default) or json |
Examples
Section titled “Examples”Show the outline of a note:
foam outline my-note# Introduction ## Background ## Goals# Implementation ## Phase 1 ## Phase 2# ConclusionGet the outline as JSON (includes line numbers):
foam outline my-note --format jsonTarget by file path:
foam outline --path notes/my-note.mdLINKS TO THIS PAGE
Foam CLI
Published with Foam