3. SnippetsLab Assistant

With SnippetsLab Assistant, you can reach your library from the menu bar and use it entirely from the keyboard.

To open the assistant, click the assistant button in the menu bar, or go to Settings > Assistant and set a keyboard shortcut for Toggle Assistant.

The assistant in browse mode, with a Quick Look preview of a snippet The assistant in browse mode, with a Quick Look preview of a snippet

Note

When the menu bar is full, macOS hides some menu bar items, which can include the assistant button. If the button doesn’t appear, quit other menu bar apps to make room.

3.1. Browse Mode

To switch to browse mode, click the list.bullet.rectangle.portrait Browse button at the top of the window, or press Shift Command 1.

To navigate the snippets list:

Action

Keyboard shortcut

Go to the previous or next item

↑ or ↓

Go to the previous or next page

Option ↑ or Option ↓

Jump to the top or bottom

Command ↑ or Command ↓

Scroll up or down without changing the selection

Fn ↑ or Fn ↓

3.1.1. Default List

By default, all snippets are listed in the assistant, in the same order as in the main window. To list only some snippets, such as the ones you use most, go to Settings > Assistant, select Custom search criteria for Default List, and click Edit to set up the search.

3.1.3. Snippet Actions

Actions on snippets in the list:

Action

How to perform

Copy to Clipboard

Click, press Return, or press Command C

Open in Main Window

Option-click, or press Option Return

Paste to Active App

Unassigned by default

Quick Look

Double-click, press →, or swipe right

Dismiss Quick Look

Press ← or Esc

To change the actions assigned to Click / Return, ⌥ Click / ⌥ Return, and ⌘ Click / ⌘ Return, go to Settings > Assistant. You can also swipe left on a snippet to reveal the Open and Copy actions.

Note

Paste to Active App requires accessibility permission, because SnippetsLab pastes by sending a Command V keypress to the active app. You’re prompted to grant access when you first choose this action in SnippetsLab settings. To grant or revoke access later, go to System Settings > Privacy & Security > Accessibility.

3.1.4. Quick Look

In Quick Look, press Command 1 through Command 9 to switch to a fragment. The keyboard shortcuts for snippet actions apply to the selected fragment.

To keep a snippet in view, detach the Quick Look window by dragging its edge away from the assistant. A detached Quick Look window floats above other windows and can be resized freely.

A detached Quick Look window showing a JSON snippet A detached Quick Look window showing a JSON snippet

3.2. Create Mode

In create mode, you can add a new snippet without opening the main window. To switch to create mode, click the square.and.pencil Create button at the top of the window, or press Shift Command 2. To add the snippet, press Command Return.

The assistant in create mode, with a new prompt The assistant in create mode, with a new prompt

3.3. Hiding the Dock Icon

To hide the Dock icon, go to Settings > Assistant and select Hide Dock icon. This option is available only while Enable Assistant is selected.

When the Dock icon is hidden, SnippetsLab has no menu bar and doesn’t appear in the app switcher (Command Tab). To open the main window, click the house.fill button in the assistant. To open SnippetsLab settings or quit SnippetsLab, click the gearshape.fill button in the assistant.

Important

This feature is experimental.