Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Add Snippets feature documentation (#3966)

Jacob Beckermanf2dab92c278f
diff --git a/docs/docs.json b/docs/docs.json
index 01eb7fd61e..268578fd78 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -42,6 +42,7 @@
"product/docs",
"product/canvas",
"product/tasks",
+ "product/snippets",
"product/channels",
"product/calls",
"product/folders",
diff --git a/docs/images/snippets_create_menu.png b/docs/images/snippets_create_menu.png
new file mode 100644
index 0000000000..8214045fef
Binary files /dev/null and b/docs/images/snippets_create_menu.png differ
diff --git a/docs/images/snippets_insert_demo.webp b/docs/images/snippets_insert_demo.webp
new file mode 100644
index 0000000000..8c5a9dfda5
Binary files /dev/null and b/docs/images/snippets_insert_demo.webp differ
diff --git a/docs/images/snippets_team_share.webp b/docs/images/snippets_team_share.webp
new file mode 100644
index 0000000000..2a05e4ad3d
Binary files /dev/null and b/docs/images/snippets_team_share.webp differ
diff --git a/docs/keyboard-shortcuts.mdx b/docs/keyboard-shortcuts.mdx
index b523fa3984..a6415f301c 100644
--- a/docs/keyboard-shortcuts.mdx
+++ b/docs/keyboard-shortcuts.mdx
@@ -44,6 +44,8 @@ description: "The complete reference for driving Macro from the keyboard."
<kbd>c</kbd> \+ <kbd>o</kbd> Create code file
+<kbd>c</kbd> \+ <kbd>s</kbd> Create snippet
+
### **List Navigation (Tasks, Inbox, etc.)**
<kbd>j</kbd> / <kbd>↓</kbd>  Move down
@@ -132,6 +134,8 @@ description: "The complete reference for driving Macro from the keyboard."
<kbd>cmd</kbd>\+<kbd>e</kbd> Inline code
+<kbd>;</kbd> Insert snippet
+
### **Canvas**
<kbd>v</kbd> Select tool
diff --git a/docs/product/docs.mdx b/docs/product/docs.mdx
index 81540b04b8..83f067e8fd 100644
--- a/docs/product/docs.mdx
+++ b/docs/product/docs.mdx
@@ -20,7 +20,7 @@ You can @mention documents in your channels, link to them in your tasks, or ask
The editor supports the full set of block nodes — paragraphs, Heading 1/2/3, bullet/numbered/checklist lists (with interactive checkboxes), blockquotes, code blocks (Prism syntax highlighting across 15+ languages), tables, dividers, images, videos, and links — plus inline and block math rendered with KaTeX. Inline formatting follows the usual shortcuts: bold (<kbd>cmd</kbd>+<kbd>b</kbd>), italic (<kbd>cmd</kbd>+<kbd>i</kbd>), underline (<kbd>cmd</kbd>+<kbd>u</kbd>), strikethrough (<kbd>shift</kbd>+<kbd>cmd</kbd>+<kbd>x</kbd>), highlight (<kbd>shift</kbd>+<kbd>cmd</kbd>+<kbd>h</kbd>), inline code (<kbd>cmd</kbd>+<kbd>e</kbd>), plus superscript and subscript.
-Markdown autoformatting works as you type (`#`/`##`/`###`, `-`, `1.`, `[]`, `>`, `---`, and backticks), `:shortcode:` emoji are supported, blocks can be dragged to reorder, <kbd>tab</kbd>/<kbd>shift</kbd>+<kbd>tab</kbd> indent and outdent, and find & replace (<kbd>cmd</kbd>+<kbd>f</kbd>) supports regex and replace-one/replace-all. The slash menu (`/`, or the command menu) inserts any of these: Normal text, Heading 1/2/3, Blockquote, Code block, Bullet/Numbered/Checklist, **Task** (an inline task with mentions), Image, Video, Link, Equation (`/latex` or `/math`), Table (5×3), and Divider. @mentions render in the body as collapsible inline pills.
+Markdown autoformatting works as you type (`#`/`##`/`###`, `-`, `1.`, `[]`, `>`, `---`, and backticks), `:shortcode:` emoji are supported, blocks can be dragged to reorder, <kbd>tab</kbd>/<kbd>shift</kbd>+<kbd>tab</kbd> indent and outdent, and find & replace (<kbd>cmd</kbd>+<kbd>f</kbd>) supports regex and replace-one/replace-all. The slash menu (`/`, or the command menu) inserts any of these: Normal text, Heading 1/2/3, Blockquote, Code block, Bullet/Numbered/Checklist, **Task** (an inline task with mentions), Image, Video, Link, Equation (`/latex` or `/math`), Table (5×3), and Divider. @mentions render in the body as collapsible inline pills. Typing `;` opens the [snippets](/product/snippets) menu to insert reusable content.
### Comments & history
diff --git a/docs/product/snippets.mdx b/docs/product/snippets.mdx
new file mode 100644
index 0000000000..0c014f8af1
--- /dev/null
+++ b/docs/product/snippets.mdx
@@ -0,0 +1,51 @@
+---
+title: "Snippets"
+icon: "brackets-curly"
+description: "Reusable text you can insert anywhere by typing ;"
+---
+
+<Frame>
+ ![Inserting a snippet into an email draft with the ; menu](/images/snippets_insert_demo.webp)
+</Frame>
+
+Snippets are reusable pieces of markdown — a meeting-notes template, a standard reply, a code-review checklist — that you can drop into anything you're writing. Type <kbd>;</kbd> in any markdown area, pick a snippet, and its content is inserted at your cursor.
+
+> To create a new snippet use shortcut <kbd>c</kbd> \+ <kbd>s</kbd>
+
+A snippet is a full markdown document, so it supports everything the [document editor](/product/docs) does: headings, lists, checklists, tables, code blocks, and the rest. Edit a snippet at any time and every future insertion uses the updated content.
+
+### Creating a snippet
+
+Press <kbd>c</kbd> to open the create launcher, then <kbd>s</kbd> — or click the Snippet card. Give the snippet a clear name; it's what you'll search for in the <kbd>;</kbd> menu.
+
+<Frame>
+ ![The Snippet card in the Create New launcher](/images/snippets_create_menu.png)
+</Frame>
+
+### Inserting a snippet
+
+Type <kbd>;</kbd> at the start of a line or after a space to open the snippets menu. It works in every markdown surface — documents, tasks, channel messages, canvas text boxes, and agent instructions.
+
+- Keep typing to filter snippets by name
+- <kbd>↑</kbd> / <kbd>↓</kbd> to navigate, <kbd>enter</kbd> to insert
+- <kbd>esc</kbd> or <kbd>space</kbd> to dismiss the menu and keep the `;` as regular text
+
+The snippet's markdown is inserted at your cursor with formatting intact.
+
+### Sharing with your team
+
+Snippets are personal when created. To share one, open it and turn on **Share with team** in the Sharing section of the side panel. Shared snippets show up in every teammate's <kbd>;</kbd> menu, and teammates can edit them — useful for keeping a single source of truth for templates the whole team uses.
+
+<Frame>
+ <img
+ src="/images/snippets_team_share.webp"
+ alt="The Share with team toggle in the snippet side panel's Sharing section"
+ title="Share with team"
+ className="mx-auto"
+ style={{ width:"61%" }}
+ />
+</Frame>
+
+<Tip>
+ Snippets work well for anything you type more than twice: weekly update formats, onboarding checklists, support replies, PR descriptions, or boilerplate legal language.
+</Tip>