Skip to Content
Spiti

Use the command center

Open Spiti's launcher from any app to run plugin commands, open apps, move windows and search the web.

Open the command center

Press ⌥Space from any app. The command center opens near the top of the screen with the pointer, over full-screen apps too, and the app you were using stays in front. You can also choose Spiti → Command Center in Spiti's app menu or Command center in Spiti's menu bar item.

It closes when you press ⌥Space again, press Escape, click elsewhere, or run a command. It always reopens empty.

If another app, such as Raycast, already uses ⌥Space, Settings → Command center shows "In use by another app". Record another combination there or in Keyboard shortcuts.

Find what you need

Start typing to search. Results are grouped:

GroupWhat it holds
SuggestionsWith nothing typed: the apps you open most, then commands you used recently or often
CommandsEvery plugin command, plugin page and plugin settings page
WindowWindow positions with their shortcuts
SpitiOpen Spiti, Home, Settings, your pages and open tabs, New terminal, New terminal with options, New browser tab and Quit Spiti
ApplicationsThe apps installed on your Mac, plus Finder
WebLast for any search: Open an address, or Search the web for your text, in a Spiti browser tab

When you type, the group with the best match comes first, so "notes" lists the Notes app at the top. Plugins can also list their own records as you type, under the plugin's name, such as a note by its title.

Every word you type has to match. Names match from the start of any of their words, by initials ("nt" finds New terminal) or with three letters or more anywhere. A plugin's name and keywords match from the start of a word once you type two letters. The top result is always selected as you type, so Return runs the first row you see.

KeyWhat it does
↑ ↓Move through results
ReturnRun the selected result
TabGo to the next field of a command's arguments
⌘ReturnSubmit a form page
EscapeGo back one page, or close at the top

Run a plugin command

A command with no input runs when you press Return. One with up to three simple fields shows them after its title: type a value, press Tab for the next one, and Return to run. Optional fields are marked. Anything longer opens a form page with Run.

After a command runs, the command center closes and a small message under the menu bar shows the outcome for a moment, or the error if it failed. A command that looks something up shows its result as a page instead.

Some plugins add a page of their own, and each plugin with settings or shortcuts gets a page named after it, such as Pomodoro settings. Change its preferences and choose Save, or record its shortcuts there. A page keeps the search bar at the top: a badge shows which page you're in, and when the page can be searched, you type right after it.

Act on the app in front

Some commands read the text you selected in the app in front, or paste their result into it. Turn on Act on the frontmost app in Settings → Command center and allow Accessibility. Spiti reads the selection only from apps that expose it, and never copies on your behalf. After pasting, Spiti restores what was on your clipboard.

Without the switch, these commands show "Turn on Act on the frontmost app in Settings → Command center". With the switch on but Accessibility not allowed, Settings → Command center shows Allow….

Clear suggestions

Suggestions come from what you run most and last on this Mac. Choose Clear recent entries in Settings → Command center to start over.

To hide a plugin's commands, turn off Command palette entries in its Surfaces card. That also removes them from ⌘K.

For plugin authors

Every action becomes a command, titled from its name ("addEntry" becomes "Add entry"). Pass title, icon, keywords or commandCenter: false to action() and query() to change that. Declare views.commandCenter in spiti.json and defineViews for a page of your own.

commandCenter: { result: "paste" } or "copy" sends a string result to the frontmost app or the clipboard. A copy action can also return { image }, a PNG as a base64 data URL (clipboardImageSchema from @spiti/sdk), which lands on the clipboard as an image. In views, useFrontmostApp() from @spiti/sdk/ui returns the app's name, its selected text and paste(text), and useCommandCenter() returns finish(message), which shows the message and closes the command center, as a command does when it's done. Wrap your page's CommandInput in <CommandCenterSearch> to put it in the command center's search bar, after your page's badge; elsewhere, such as ⌘K, it stays in place.

A query with commandCenter: { items: true } lists records as the user types. It returns commandCenterItemsSchema from @spiti/sdk: up to 500 items, each with an id, title, optional icon and keywords, and a run that names an action, its input, and optionally a floating window to open.

On this page