Write

Docs: Markdown pages in a project

Create a doc, switch between reading, editing and its Markdown source, and work in it alongside other people and agents.

A doc is a page written in Markdown that belongs to a project. A project's docs are its section of the wiki: its team's wiki, or the workspace's wiki for a project with no team. Only the project's members and the workspace's owners and admins can read and edit them, wherever the section sits. sfora saves a doc as you type.

Create a doc

Pick one of these:

  • In a project's Library (press 4 in the project), click New doc at the top of the section, or Create document above the list.
  • In the Wiki tab, point at the project's section and click +, or New sub-page in a page's ⋯ menu.

The doc is a page of the project's section. To put it under another page, start it from that page.

The new doc opens with the cursor in its title. Until you type a title, it shows as Untitled.

Read, edit or see the source

A doc has three views:

  • edit: write in it. This is where a doc opens when you can edit it.
  • read: the finished page, with nothing to change by accident. Diagrams are drawn.
  • code: the doc's Markdown source, frontmatter included. You can read and copy it, but not change it.

On a doc's own page, open Page actions (⋯) at the top right:

  • View source shows the code view. Back to the page returns.
  • Lock page shows the read view. Unlock page lets you edit again.

When a doc is open in a panel beside the page, point at the panel's header to see read, edit and code, and click one. Or press ⌘E to step through them: edit, then code, then read. The key works while the keyboard isn't in the doc's text.

The view is yours alone: locking a page doesn't stop anyone else editing it. sfora remembers the view you last used for each doc.

A doc in the read view.
  1. The title.
  2. A heading. Headings make the doc's outline.

Find your way with the outline

When a doc has headings, its outline shows as a column of short dashes at the right edge of the page, one per heading. Point at it to see the headings as a list, and click one to jump there. It lists the first three heading levels.

The outline shows on a doc's own page when the window is wide enough. It doesn't show in a panel.

Add properties

Properties are the doc's frontmatter: named values, such as a status, an owner or a due date, kept at the top of the Markdown source.

In the edit view, point at the doc's title. Add property appears at the right.

Click it. Type a name, then a value.

Press ↵ in the last value to add another. To remove one, click its remove button, or clear its name and value and press ⌫.

Some names get their own control:

NameValue
statusdraft, in progress, in review, done or archived
prioritynone, low, medium, high or urgent
owner, assignee, reviewerA member; owners, assignees and reviewers take several
due, date, start, end, deadlineA date
tags, labels, keywords, aliases, topicsA list
draft, pinned, archived, done, publicYes or no

Any other name takes plain text. In the read view, properties show as a list under the title; in the code view, as frontmatter.

See who else is here

When other people or agents have the doc open, point at the top of the page to see their avatars. Point at an avatar to see whether they're editing or viewing, and, for an agent, the tool it works through. The bar at the bottom says who is there, for example "Maya is editing". In the edit view, a small label marks the block each of them is in.

The same bar shows the doc's word count and whether your changes are Saved.

When two people change the same block

sfora saves as you type and folds other people's changes into your copy, so you can both work in one doc. If someone changes a block you were changing too, a note appears at the bottom of the page: it says who wrote there and what they wrote. Click Keep mine to keep your version of that block, or Take theirs to use theirs.

If the whole doc changed in another session, the page says This document changed in another session. Click Reload to load the newest version, or Keep mine to save yours over it.

Keyboard shortcuts

KeyWhat it does
⌘EWith a doc open in a panel: step through edit, code and read
4In a project: open its Library

For the keys you use while writing, see Writing in the Markdown editor.

Availability

Anyone in the doc's project can read and edit it. Only the person who created a doc, or a workspace owner or admin, can share it, download it from Page actions, or delete it. On the Free plan, a workspace holds 250 items: posts, cards and docs together.

Troubleshooting

You can't type in the doc

The doc is in the read or code view. Open Page actions and pick Unlock page or Back to the page, or click edit in the panel's header.

Couldn't save this document

sfora couldn't save your last change, for example because the title is longer than 200 characters. Fix the cause and click Retry.

Last updated on