Files
Docwell/Docs-Site/guide/using-docwell.md
T
tajniak81andClaude Opus 5.5 3102a476a6
CI / go (Server) (push) Failing after 4m1s
CI / go (Web-App) (push) Successful in 10m50s
CI / frontend (push) Failing after 6m46s
CI / desktop (ubuntu-latest) (push) Successful in 1h10m39s
CI / mobile (push) Failing after 3m2s
CI / docker (push) Successful in 35m59s
Docs / build (push) Successful in 13m26s
Docs / deploy (push) Skipped
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
Add databases: table, kanban and calendar views with rows as pages
Phase C of docs/AFFINE.md (ADR-13).

A database is a block whose records live in the page's Y.Doc, in
ydoc.getMap("blocks") under the block's id: columns, rows (each cell its
own map entry, so concurrent edits to one row merge) and views. Order is
a fractional position per item, so moving a row keeps edits made to it at
the same time. Database edits share the page's undo history.

- Thirteen property types: title, text, number, checkbox, select,
  multi-select, date, progress, link, attachment, member, created time
  and created by. The column menu renames, changes type (converting the
  values), sorts, filters, hides, inserts, moves, duplicates and deletes;
  columns resize and drag.
- Table view: keyboard navigation, range selection, typing to edit,
  copy and paste with spreadsheets (pasting adds rows as needed), row
  dragging, bulk delete, grouping.
- Views in tabs, each with its own filters (all/any), sorts, grouping
  and visible properties; kanban grouped by select, multi-select,
  checkbox or member with cards dragged between columns; calendar by a
  date property with records dragged between days.
- A record opens beside the page with its properties and a body of its
  own (a Y.XmlFragment in the row, edited by a second editor).
- /database, Ctrl+G or "Group as database" turns a list into a database;
  CSV export and import; a copied, pasted or duplicated database gets
  its own copy of the records.

Server: yrs writes each database's records into its node as attrs.data
when it turns a document into JSON, adds them to the search text, and
writes them back on imports, restores and templates. Markdown, HTML,
PDF and Word exports show a database as a table of its first view's
columns. Notion database CSVs import as database blocks with guessed
types. Share links and history previews show databases read-only.

Strings are translated into all five languages, the user guide covers
databases, and the mobile editor bundle is rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:06:18 +01:00

8.5 KiB
Raw Blame History

Workspaces, spaces and pages

How content is organized

  • An organization is a company or team. Everyone belongs to at most one.
  • A workspace belongs to an organization and holds spaces. Switch workspaces at the top of the sidebar.
  • A space groups pages, for example per team or project. It is open (every workspace member can open it) or private (only the people and groups added to it).
  • Pages nest inside each other. Drag them in the sidebar to reorder or move them.

Writing

Pages save as you type, and everyone with the page open sees changes and cursors live.

To Do this
Insert a heading, list, to-do list, table, callout, quote, code block, divider, image or file Type / and pick from the menu (keep typing to filter); headings 4–6 are under Other headings
Start a to-do list Type [] at the start of a line
Format text, colour or highlight it, align it, or add a link Select it and use the toolbar that appears
Move, duplicate, turn into another kind, or delete a block Point at it and drag the ⠿ grip in the margin, or click the grip for a menu
Change a table Click in it for the table toolbar; drag the grips on a row's left edge or a column's top edge to move it (or Ctrl+Alt+arrow keys)
Copy a link to a block Ctrl+Shift+C in the desktop app, or the link button in the margin or the toolbar
Headings by keyboard Ctrl+Shift+1 to 6, and Ctrl+Shift+0 for plain text
Mention someone Type @ and their name
Show another page inside this one Type ![[ and pick it, or use /Synced page; it stays up to date as that page changes, and Fold shrinks it to its title
Open a page beside this one Alt+click (Option+click on a Mac) any link to it, or choose Open beside in the ⋯ menu
Go back or forward Ctrl+[ and Ctrl+] (⌘[ and ⌘] on a Mac)
Add an image or file Paste or drop it, or use /image, /file or the paperclip in the header
Undo Ctrl+Z (your own changes only)
Fold the sidebar Ctrl+/

History in the page header lists saved versions; you can view any of them and restore it. Restoring keeps the current text as a version too.

A synced page is read-only where it is shown: open it to edit it. People who cannot open that page see only its title. Account → Editor sets, for this device, the text size, whether new pages start full width or titled with today's date, whether properties and the pages that link here show, and line numbers in code blocks.

Databases

A database is a block that holds records: type /database to add one, or select a list and press Ctrl+G (or choose Group as database in the list's ⠿ menu) to turn each item into a record. Everyone with the page open edits it together, and Ctrl+Z undoes database changes like any other.

  • Properties are the columns: title, text, number, checkbox, select, multi-select, date, progress, link, attachment, member, created time and created by. Click a column's name to rename it, change its type (values are converted), sort or filter by it, hide it, move it, or insert another next to it. Drag its edge to resize it, or its name to move it.
  • Cells: click a cell and type, or press Enter to edit it; arrow keys and Tab move between cells, Delete clears them and Shift+arrows select several. Copy and paste work with spreadsheets: paste a block of cells and new records are added as needed.
  • Views sit in tabs above the records, each with its own filters, sorts, grouping and visible properties: a table, a kanban board grouped by a select, checkbox or member property (drag cards between columns), and a calendar that places records on a date property (drag them to another day). Click the active tab to rename, duplicate, change or delete the view; which view you look at is yours alone.
  • Records as pages: Open on a record, or a click on a card, opens it beside the page, with its properties on top and room to write below.
  • CSV: the ⋯ menu exports the current view as a CSV file, or adds records from one; an empty database takes the file's columns and guesses their types.

Exports (Markdown, HTML, PDF, Word) show a database as a table of its first view's columns, and search finds the text in its records. On a public link or in History, databases are read-only.

Comments

Select text and choose Comment to start a discussion; the text stays highlighted and the comment appears in the Comments panel. People with the commenter role can comment without being able to edit. Authors and space admins can delete comments.

The Inbox lists your notifications. Under its settings you choose whether they also come by email, and which kinds (mentions, comments, replies, resolved threads, shared pages, reminders).

Finding things

Press Ctrl+K (⌘K on a Mac) or click Search in the sidebar. With nothing typed it shows the pages you visited last; type to search titles and text in every space you can open. The filters narrow results by space, tag, author or date. Star a page (☆ in the header) to keep it under Favorites in the sidebar.

Properties, tags and collections

Under each page title, Properties shows the page's tags, the workspace's custom properties (text, number, checkbox, date, select, multi-select, person and link) and when the page was created and changed. Info in the page header opens the same list in a side panel with every property, including hidden ones. Anyone who works in the workspace can add properties there, or in Settings → Page properties, where you can also order them, choose when they show under the title and edit select choices. Settings → Tags renames, recolours, merges and deletes tags.

All docs in the sidebar lists every page you can open, as a list, a grid or cards. Group and order the list by any property, pick which properties show, and filter it with rules (for example "Status is Done" or "changed in the last 7 days"). Tick pages to tag, move, trash or collect them at once. Save as collection keeps the filter as a collection in the sidebar. A collection holds the pages its rules match, plus pages added by hand from its list or from the page's Info panel. Collections are yours until you share them with the workspace.

Journal

Journal in the sidebar opens today's page in your journal: one page per day, kept in a private Journal space that only you see, workspace admins included. The week strip above a journal page jumps between days; a dot marks days that already have a page. In read mode, clicking a date in any page opens that day's journal. Pick the page new journal pages start from in the Info panel, under Journal; any page marked as a template can be used.

Sharing

Share in the page header shows who can open the page through its space and copies the page's link. Editors can turn on a public link: anyone with it can read the page (and, if you choose, the pages inside it) without an account. Turning it off makes the link stop working at once. Pages in the trash are never shown through a link.

Import and export

  • Export: the ⋯ menu in the page header saves the page as Markdown, HTML, PDF or Word. PDFs are A4, with a bookmark per heading and the page's images. Word files keep headings, lists, to-dos, callouts, tables, colours and the page's images, and import back into Docwell as they were. Draw.io and Excalidraw diagrams become a link to their file, and Mermaid charts show their source.
  • Import: Import on a space's page list creates a page per Markdown (.md, .txt), HTML or Word (.docx) file. A leading # Heading, or the Word document's title, becomes the page title. Word headings, lists, quotes, tables, alignment, colours, links and images are kept. Up to 20 files at once.
  • From Notion: in Notion, choose Settings → Export, pick Markdown & CSV or HTML and include subpages and files. Import the .zip you get (up to 100 MB, 2000 pages) as it is. Docwell rebuilds the page tree, keeps links between the pages, and stores images and files as attachments. Each database becomes a page with a database block of its rows, with guessed property types, and the row pages under it. Tables in pages come in as tables; callouts and to-do lists are kept.
  • To Notion: export the page as Word or Markdown, then import that file with Import in Notion's sidebar.

Trash

Move to trash hides a page and everything inside it. Restore it from the space's Trash. Space admins can delete pages there for good.