|
| 1 | +--- |
| 2 | +title: Command Palette |
| 3 | +description: "Use the massCode Command Palette to jump between spaces, find snippets, notes, and HTTP requests, run commands, and create new items from anywhere." |
| 4 | +--- |
| 5 | + |
| 6 | +# Command Palette |
| 7 | + |
| 8 | +<AppVersion text=">=5.4" /> |
| 9 | + |
| 10 | +The Command Palette gives you a keyboard-first way to move around massCode without reaching for the Space rail or sidebars. Use it to jump to spaces, open snippets, notes, and HTTP requests, run common actions, and create new items from any space. |
| 11 | + |
| 12 | +Open it with <kbd>Cmd+P</kbd> on macOS or <kbd>Ctrl+P</kbd> on Windows and Linux. |
| 13 | + |
| 14 | +<img :src="withBase('/command-palette.png')"> |
| 15 | + |
| 16 | +## What You Can Find |
| 17 | + |
| 18 | +The palette searches by title across searchable content: |
| 19 | + |
| 20 | +- snippets in Code |
| 21 | +- notes in Notes |
| 22 | +- HTTP requests in HTTP |
| 23 | +- spaces |
| 24 | +- commands |
| 25 | +- recently opened items |
| 26 | + |
| 27 | +Search results are ranked with your recent usage, so items you open often move higher over time. |
| 28 | + |
| 29 | +## Run Commands |
| 30 | + |
| 31 | +Commands create new content or open app-level actions without switching spaces first. |
| 32 | + |
| 33 | +Examples: |
| 34 | + |
| 35 | +- create a new snippet |
| 36 | +- create a new note |
| 37 | +- create a new HTTP request |
| 38 | +- create folders in Code, Notes, or HTTP |
| 39 | +- open Preferences |
| 40 | + |
| 41 | +Press <kbd>Cmd+Shift+P</kbd> on macOS or <kbd>Ctrl+Shift+P</kbd> on Windows and Linux to open the palette directly in command mode. You can also type `>` after opening the palette. |
| 42 | + |
| 43 | +## Search Commands |
| 44 | + |
| 45 | +Use command mode when you want to run an action instead of opening existing content. |
| 46 | + |
| 47 | +1. Open the palette. |
| 48 | +2. Type `>`. |
| 49 | +3. Type the command name, such as `new snippet`, `new note`, or `preferences`. |
| 50 | +4. Press <kbd>Enter</kbd> to run the selected command. |
| 51 | + |
| 52 | +Press <kbd>Esc</kbd> to leave command mode and return to the full palette. |
| 53 | + |
| 54 | +## Search In A Space |
| 55 | + |
| 56 | +Use space mode when you want to search only one part of massCode. |
| 57 | + |
| 58 | +1. Open the palette. |
| 59 | +2. Type `@`. |
| 60 | +3. Select a space, such as **Code**, **Notes**, or **HTTP**. |
| 61 | +4. Type your search query. |
| 62 | + |
| 63 | +You can also type the scope directly, for example `@code auth` or `@notes release`. |
| 64 | + |
| 65 | +Press <kbd>Esc</kbd> to leave the active scope and return to the full palette. |
| 66 | + |
| 67 | +## Create From Search |
| 68 | + |
| 69 | +If a search has no exact match, the palette can create a new item from the query. |
| 70 | + |
| 71 | +- Create a snippet in Code Inbox. |
| 72 | +- Create a note in Notes Inbox. |
| 73 | +- Create an HTTP request in HTTP Inbox. |
| 74 | +- Create an HTTP request from a URL. |
| 75 | + |
| 76 | +When create fallbacks are shown, press <kbd>Shift+Enter</kbd> to run the first create action. |
| 77 | + |
| 78 | +## Actions Panel |
| 79 | + |
| 80 | +Open the actions panel for the selected result with <kbd>Right Arrow</kbd> or <kbd>Cmd+K</kbd> on macOS and <kbd>Ctrl+K</kbd> on Windows and Linux. |
| 81 | + |
| 82 | +Actions depend on the selected result. For example, you can copy a title, copy snippet content, copy an HTTP request URL, or run the selected command. |
| 83 | + |
| 84 | +Use <kbd>Left Arrow</kbd> or <kbd>Esc</kbd> to close the actions panel. |
| 85 | + |
| 86 | +<script setup> |
| 87 | +import { withBase } from 'vitepress' |
| 88 | +</script> |
0 commit comments