|
| 1 | +--- |
| 2 | +title: Search |
| 3 | +description: "Search snippets, notes, HTTP requests, spaces, and commands in massCode with scoped list search and Command Palette filters." |
| 4 | +--- |
| 5 | + |
| 6 | +# Search |
| 7 | + |
| 8 | +massCode has two search flows: |
| 9 | + |
| 10 | +- Use the search field above a list to narrow the current space. |
| 11 | +- Use the Command Palette to search across the app and add filters with the keyboard. |
| 12 | + |
| 13 | +## Search the current list |
| 14 | + |
| 15 | +The search field above a list searches the items in that space: |
| 16 | + |
| 17 | +- Code searches snippets. |
| 18 | +- Notes searches notes. |
| 19 | +- HTTP searches requests. |
| 20 | + |
| 21 | +Click the search field at the top of the list, or press <kbd>Cmd+F</kbd> on macOS and <kbd>Ctrl+F</kbd> on Windows and Linux. |
| 22 | + |
| 23 | +List search respects the current sidebar context. If you select a folder, tag, or library view first, the search field narrows that selection instead of searching the whole space. |
| 24 | + |
| 25 | +Examples: |
| 26 | + |
| 27 | +- Select a Code tag, then search to find matching snippets inside that tag. |
| 28 | +- Select a Notes folder, then search to find matching notes in that folder. |
| 29 | +- Open Favorites, Trash, Tasks, Today, or Upcoming in Notes, then search inside that view. |
| 30 | +- Select an HTTP folder, then search for matching requests inside that folder. |
| 31 | + |
| 32 | +Clearing the search text keeps the same sidebar selection active. |
| 33 | + |
| 34 | +## Search from the Command Palette |
| 35 | + |
| 36 | +Open the Command Palette with <kbd>Cmd+P</kbd> on macOS or <kbd>Ctrl+P</kbd> on Windows and Linux. |
| 37 | + |
| 38 | +The palette can search: |
| 39 | + |
| 40 | +- snippets |
| 41 | +- notes |
| 42 | +- HTTP requests |
| 43 | +- spaces |
| 44 | +- commands |
| 45 | +- recently opened items |
| 46 | + |
| 47 | +Results are ranked with recent usage, so items you open often move higher over time. |
| 48 | + |
| 49 | +## Scope the palette to a space |
| 50 | + |
| 51 | +Use `@` to search in one space. |
| 52 | + |
| 53 | +1. Open the palette. |
| 54 | +2. Type `@`. |
| 55 | +3. Select **Code**, **Notes**, or **HTTP**. |
| 56 | +4. Type your search query. |
| 57 | + |
| 58 | +You can also type the scope directly: |
| 59 | + |
| 60 | +- `@code auth` |
| 61 | +- `@notes release` |
| 62 | +- `@http webhook` |
| 63 | + |
| 64 | +Press <kbd>Esc</kbd> to leave the active scope and return to the full palette. |
| 65 | + |
| 66 | +## Add filters in the palette |
| 67 | + |
| 68 | +<AppVersion text=">=5.6" /> |
| 69 | + |
| 70 | +Use filter tokens when you want to narrow Command Palette search by folder or tag. |
| 71 | + |
| 72 | +### Tags |
| 73 | + |
| 74 | +Type `#` to show tag suggestions. Select a tag to add it as a chip. |
| 75 | + |
| 76 | +Examples: |
| 77 | + |
| 78 | +- `@code #vue composable` |
| 79 | +- `@notes #backend migration` |
| 80 | + |
| 81 | +Tags are available in Code and Notes. |
| 82 | + |
| 83 | +### Folders |
| 84 | + |
| 85 | +Type `/` to show folder suggestions. Select a folder to add it as a chip. |
| 86 | + |
| 87 | +Examples: |
| 88 | + |
| 89 | +- `@code /Shell docker` |
| 90 | +- `@notes /Development backend` |
| 91 | +- `@http /Webhooks stripe` |
| 92 | + |
| 93 | +Nested folders can be selected by path, such as `/Work/API`. |
| 94 | + |
| 95 | +## Work with search chips |
| 96 | + |
| 97 | +The palette shows active scope and filters as chips in the input. |
| 98 | + |
| 99 | +- Click the `x` on a chip to remove that scope or filter. |
| 100 | +- Press <kbd>Backspace</kbd> in an empty input to remove one chip at a time. |
| 101 | +- Removing a filter recalculates the search without clearing the remaining query. |
| 102 | + |
| 103 | +You can combine a space, a folder, a tag, and text query when the combination applies to that space. |
| 104 | + |
| 105 | +Example: |
| 106 | + |
| 107 | +```text |
| 108 | +Notes /Development #backend migration |
| 109 | +``` |
| 110 | + |
| 111 | +This searches Notes for `migration` inside the Development folder with the backend tag. |
0 commit comments