Files and Documents

AirBuild's reader for a Markdown file sent in a chat: the formatted document in a tab named after the file, with Save As…, Copy All and sharing.

Document is where a Markdown file sent in a chat opens: an Agent’s plan, a spec, release notes. The file is shown formatted, as a page of text you can read, select and copy, in a tab named after the file. It’s a reader: the file stays the message’s, and nothing here changes it.

Open it

Tap a Markdown file (.md, .markdown, or a file sent as Markdown) in a message. It works the same in a project chat, a DM and a group.

The document opens as a tab in the chat’s inspector, a page over the chat. Go back to the chat with the back button or by swiping from the left edge. On iPad, it opens as a tab in the pane beside the chat.

A document that’s already open isn’t opened twice: tapping the file again brings its tab forward. Open tabs are kept, so a document tab is still there when you come back to the chat, even on another day; it downloads the file again if needed.

When no chat is in front to hold a tab, the document opens in a sheet over the window instead; see In a sheet.

Other kinds of file open elsewhere; see File preview.

What’s on it

Item What it shows or does
Tab name The file’s name.
Download progress When the file isn’t on this device yet: a progress bar (or a spinner, until the size is known) with the file’s name under it. A file already downloaded opens at once.
The document Headings, lists, tables, code, links and maths, formatted the way messages are in the chat, in a column of reading width. On iPhone and iPad the text follows your text size setting.
Selecting text Text is selectable as it is: drag across it (on iPhone and iPad, touch and hold first), then copy. On the Mac a drag can start in the margin too.
Links Tap a link to open it, as links in messages do; see Conversation.

The tab keeps your place in the document when you switch tabs and come back.

Save, copy or share the file

On the Mac and iPad, right-click the document’s tab (on iPad, touch and hold it). On iPhone, touch and hold the document’s card in the Tab overview. The menu starts with these, then the usual tab items:

Item What it does Where
Save As… Saves the file where you choose. All
Share… The Mac’s share menu, with the file. Mac
Open In… The share sheet, where you can open the file in another app. iPhone, iPad
Copy All Copies the file’s whole text, Markdown and all. All
Open in Default App Opens the file in the Mac’s app for Markdown files. Mac
Reveal in Finder Shows the downloaded file in Finder. Mac

The same actions are in the file’s menu in the chat. On a tab that hasn’t downloaded its file yet (for example one kept from an earlier day), the file is downloaded first, then the action runs. If that download fails, nothing happens and no message shows.

In a sheet

When the document opens in a sheet, the sheet’s title is the file’s name and its buttons differ:

Button What it does
Share (top right) Opens the share sheet with the file. Its actions include Copy All Text, which copies the whole text; the button shows a checkmark for a moment after. Dimmed until the file has loaded.
Done Closes the sheet.

Messages

Message When What to do
Unable to Load Document — “The document could not be downloaded. Check your internet connection and try again.” The file didn’t download, or couldn’t be read. Check your connection and tap Try Again. If you were offline, the document loads by itself once you’re back online.