Command palette
Hit ⌘K to jump to any doc, create a new one, open Settings, or scaffold from a template. Every section verified against the actual handler.
The command palette is the fastest way to do anything in sweetdocs. One shortcut, four sections of results, cross-library search.
Opening (and closing) it
⌘K on Mac, Ctrl+K on Windows / Linux. The shortcut is a toggle — pressing it again, or pressing Esc, closes the palette. Clicking the dimmed backdrop also closes it.
The palette renders as a centred card at 20vh from the top of the viewport, max width ~640px. Backdrop is bg-black/40 with a small blur.
A small esc chip in the top-right of the palette is a visual hint — it’s not a button, just there to remind you.
- New Document
- Settings
- Meeting notes
- Project brief
- README
- One-pager
- kyoto-trip
- Auth migration plan
- Pricing notes
What’s inside
The palette has three sections when you haven’t typed anything yet, and one “search results” section when you have.
Actions
The first group at the top — fixed, always present.
| Item | What it does | Keywords matched |
|---|---|---|
| + New Document | Creates a blank doc in your current folder + library, navigates to it | new, create, document, doc |
| ⚙ Settings | Opens /app/settings (Profile + Appearance + API keys + Security) | settings, preferences, theme, appearance |
Templates
Pre-made document scaffolds. Picking one creates a new doc with the template’s title + content prefilled, then navigates you to it.
| Template | What’s in it |
|---|---|
| Meeting notes | Attendees · Agenda · Discussion · Decisions · Action items |
| Project brief | Problem · Goals · Out of scope · Approach · Success criteria · Plan table |
| README | Standard open-source README skeleton |
| One-pager | Single-page brief format |
Selecting a template fires createDocument({ title, content }) then navigates to /app/doc/<new-id>.
Recent documents
When you haven’t typed a query, the bottom group lists your 10 most recently updated documents from the current library. Each row shows the doc-type icon, the title (or Untitled), and the last-updated date on the right.
Searching
Start typing. The Recent group disappears and the palette flips into search mode.
Search is cross-library — it queries every library you have access to (personal + every team library across every org you belong to). Results rank server-side, so they appear after a short fetch (a Searching… chip in the top-right is the live indicator).
Two result types come back:
- Documents — show doc icon + title. Click → opens at
/app/doc/<id>. - Folders — show folder icon + name. Click → jumps the sidebar to that folder and navigates to
/app/browse.
The empty state reads No results. while not searching, or Searching… while a fetch is in flight.
Why is this different from the sidebar search? The sidebar’s search box is library-scoped (only the library you’re currently inside). The palette is everything-scoped. The “Search everything →” button at the bottom of the sidebar search results pops the palette open seeded with your current query.
Keyboard navigation
| Keys | Action |
|---|---|
| ↑ / ↓ | Move highlight up / down |
| Enter | Select the highlighted item |
| Esc | Close the palette (your query is cleared on close) |
The list loops — pressing ↓ on the last item wraps to the first.
Other ways to open it
Beyond ⌘K:
- The Search button in the mobile bottom nav (magnifying-glass icon).
- The Search everything → link at the bottom of the sidebar’s per-library search results (seeds the palette with your current query).