Chapter 2
Create, open, and save your first document
Create and save#
- Choose File ▸ New Document (⌘N).
- Type a few lines.
- Choose File ▸ Save (⌘S).
- Pick a folder and filename. Use an extension that matches the intended syntax, such as
.mdfor CommonMark. - Save again after another change and notice that Pilcrow now writes without asking for a location.
The first save establishes the document’s identity, folder, and extension. The folder matters because relative links and images are resolved from it. The extension helps Pilcrow choose an appropriate syntax profile.
Open an existing file#
- On Mac, choose File ▸ Open File… (⌘O), double-click a supported text file in Finder, or drag it onto Pilcrow.
- On iPad, use the file picker, Files app, or a share sheet. Pilcrow edits the chosen file in place when the provider permits it.
- To work with related files, choose Browse Enclosing Folder… or open a folder in the sidebar.
Pilcrow supports ordinary text and markup files and detects their text encoding. A file handed in by another app or cloud provider may need continued access; do not move or revoke the file while it is open.
Save As and rename#
Use File ▸ Save As… to create a separate copy in another location or encoding. Use the document-title menu’s Rename when you want the current document to keep its identity but gain another name. Save As is the safer choice before an experiment because the original remains unchanged.
Close safely#
Choose File ▸ Close (⌘W) for the active document or Close All (⇧⌘W) for all documents. If a document has unsaved changes, Pilcrow asks whether to save, discard, or cancel. Read the filename in that prompt; several open documents may have similar names.