> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsnippets.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspace Search

> Search across all snippets, folders, and tags in your workspace with Slack-like search

## Overview

Workspace Search is Snippets AI's powerful, Slack-inspired search feature that lets you find any snippet, folder, tag, or favorited item across your entire workspace. With fuzzy matching, filters, and instant results, Workspace Search ensures you can locate exactly what you need in seconds-even in libraries with thousands of snippets.

Think of it as Spotlight or Cmd+K for your snippet library.

## Why Workspace Search Matters

As your library grows, browsing becomes impractical:

* **Speed**: Find snippets faster than browsing folders
* **Comprehensive**: Search across all teams, folders, tags
* **Fuzzy Search**: Don't need exact names-close matches work
* **Filters**: Narrow by type, team, date, author
* **Universal**: One search box for everything

## How It Works

<iframe src="https://player.vimeo.com/video/1104090447?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

### Opening Workspace Search

#### Method 1: Keyboard Shortcut (Fastest)

* **Mac**: `Cmd + P`
* **Windows/Linux**: `Ctrl + P`

Search dialog opens, ready to type.

#### Method 2: Search Bar

Click the search bar at top of the Snippets AI window.

#### Method 3: Menu

**File → Search Workspace** or **Edit → Find**

### Basic Search

1. **Open Workspace Search** (`Cmd/Ctrl + P`)
2. **Type your query**
   * Snippet names
   * Content keywords
   * Tag names
   * Folder names
3. **Results appear instantly** as you type
4. **Navigate results**:
   * `↑` / `↓` arrows
   * Or click with mouse
5. **Press Enter** or click to open snippet

### Search Scope

Workspace Search finds:

<iframe src="https://player.vimeo.com/video/1104090948?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

#### Snippets

* Snippet names
* Snippet content (full-text search)
* Snippet descriptions

#### Organizational Elements

* Folder names
* Tag names
* Team names

#### Metadata

* Authors (who created snippet)
* Dates (created, modified)
* Favorites status

#### Media

* Audio transcriptions
* Video descriptions
* Attached file names

## Advanced Search Features

### Fuzzy Matching

Don't need exact matches:

```
Search: "authflow"
Finds:
  ✓ "Authentication Flow"
  ✓ "Auth Workflow"
  ✓ "User Auth Flow Template"
```

Typo-tolerant and flexible.

### Search Operators

Use operators for precise searches:

#### Exact Match

```
Search: "react component"
Finds snippets with exact phrase "react component"
```

#### Exclude Terms

```
Search: react -hooks
Finds snippets with "react" but not "hooks"
```

#### Multiple Terms (AND)

```
Search: api authentication
Finds snippets containing both "api" AND "authentication"
```

#### Either Term (OR)

```
Search: typescript | javascript
Finds snippets with "typescript" OR "javascript"
```

### Filter by Author

Find snippets by creator:

```
author:sarah           - Created by Sarah
author:me              - Created by you
```

### Search Favorites Only

<iframe src="https://player.vimeo.com/video/1104090523?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

Search only favorited snippets across all workspaces:

```
is:favorite <query>     - Search favorites only
is:starred <query>      - Same as above
```

Or use "Global Favorites" filter in search UI.

**Use Case:**

```
Search: is:favorite react
Results: All your favorited React snippets across all workspaces
```

## Search Results

### Result Display

Each result shows:

```
📝 Snippet Name
   📁 Folder > Subfolder
   🏷️ tag1, tag2, tag3
   👤 Created by Sarah • Modified 2 days ago
   📊 Preview: "const fetchData = async () => {...}"
```

**Highlighting:**

* Matched terms highlighted in yellow
* Easy to see why result matched

### Result Actions

Click result to open, or use quick actions:

**Hover Menu:**

* **Open** - Open snippet in editor
* **Copy** - Copy content to clipboard
* **Quick View** - Preview without opening
* **Share** - Generate share link
* **Add to Favorites** - Star the snippet

**Keyboard Shortcuts:**

* `Enter` - Open

### Sorting Results

Change result order:

**Sort Options:**

* **Relevance** (default) - Best matches first
* **Recently Modified** - Newest changes first
* **Recently Created** - Newest snippets first
* **Alphabetical** - A to Z

## Search Shortcuts & Tips

### Keyboard Navigation

Master Workspace Search without mouse:

```
Cmd/Ctrl + P          Open/Close search
↑ / ↓                 Navigate results
Enter                 Open selected
Esc                   Close search
```

### Recent Searches

Workspace Search remembers recent queries:

1. Open search (`Cmd/Ctrl + P`)
2. Empty query shows recent searches
3. Click or arrow-key to recent query
4. Press Enter to search again

### Search Suggestions

As you type, suggestions appear:

* **Autocomplete**: Completes partial words
* **Did you mean?**: Suggests corrections for typos
* **Popular Searches**: Shows common queries

### Saved Searches

Save frequent searches:

1. Perform search with filters
2. Click "Save Search"
3. Name it (e.g., "My React Snippets")
4. Access from Search dropdown

**Saved Search Example:**

```
Name: "Frontend Team JS Snippets"
Query: team:Frontend tag:javascript modified:week
```

Click saved search to instantly re-run.

## Practical Workflows

### Finding Forgotten Snippets

**Scenario:** "I created a snippet about database queries last month..."

```
Search: database created:month author:me
Results: Shows your database snippets from last month
```

### Cross-Team Discovery

**Scenario:** "Did anyone create a React hook for auth?"

```
Search: react hook authentication
Results: Finds hooks across all teams you have access to
```

### Cleaning Up Duplicates

**Scenario:** "Find all 'API' snippets to consolidate"

```
Search: api
Sort by: Alphabetical
Review: Merge or delete duplicates
```

### Building Prompt Library

**Scenario:** "Find all ChatGPT prompts I've favorited"

```
Search: is:favorite chatgpt
Results: All your starred ChatGPT prompts
```

## Best Practices

<Tip>
  **Use Cmd/Ctrl + P Constantly**: Make it muscle memory. Faster than browsing
  folders 99% of the time.
</Tip>

<Tip>
  **Tag Consistently**: Better tags = better search results. Establish tagging
  conventions with your team.
</Tip>

<Tip>
  **Descriptive Names**: Give snippets clear, searchable names. "React Auth
  Hook" is better than "Hook 1".
</Tip>

<Tip>
  **Save Common Searches**: If you search the same thing weekly, save it for
  one-click access.
</Tip>

<Tip>
  **Search First, Browse Second**: When looking for something, try search before
  navigating folders. It's usually faster.
</Tip>

## Comparing Search Options

| Feature  | Workspace Search  | Quick Access    | Favorites       |
| -------- | ----------------- | --------------- | --------------- |
| Scope    | Current workspace | All workspaces  | Favorited only  |
| Speed    | Very fast         | Instant         | Instant         |
| Filters  | Extensive         | Basic           | None            |
| Context  | Full details      | Quick preview   | Quick preview   |
| Best For | Deep research     | Quick insertion | Frequent access |

**Use Workspace Search when:**

* Finding snippet to edit or review
* Exploring unfamiliar areas of library
* Using advanced filters
* Researching across teams

**Use Quick Access when:**

* Inserting snippet into another app
* Quick lookup while working
* Need snippet from any workspace

**Use Favorites when:**

* Accessing your most-used snippets
* Building personal toolkit
* One-click access to essentials

## What's Next

<Card title="Quick Access Overview" icon="bolt" href="/guides/quick-access-intro">
  Learn about Quick Access for cross-app snippet insertion
</Card>

<Card title="Global Favorites" icon="star" href="/guides/quick-access-favorites">
  Master favorites for instant access to key snippets
</Card>

<Card title="Folders & Tags Management" icon="folder-tree" href="/guides/folders-tags-management">
  Organize snippets to make them more searchable
</Card>
