Shortcuts App
Snippety provides actions for Apple's Shortcuts app, so you can automate your snippets and combine them with any other app on your Mac.
info
Shortcuts actions require Snippety Pro.
How To Use
- Open the Shortcuts app and create a new shortcut.
- Search for Snippety in the actions list.
- Add an action and fill in its parameters - snippets, collections, and tags are suggested automatically.
- Run it from the Shortcuts app, the menu bar, Spotlight, or by asking Siri.
You can open the Shortcuts app directly from
App Settings -> Integrations -> Shortcuts App.
Available Actions
Snippets
| Action | Description |
|---|---|
| Find Snippet | Find a single snippet by name, ID, or deeplink, or pick one from the list. |
| List Snippets | List snippets filtered by name, collections, and tags. |
| Create Snippet | Create a snippet with a name, keyword, description, format, collection, tags, template, and Quick Access Menu flag. |
| Edit Snippet | Change any of the fields above on an existing snippet. |
| Delete Snippet | Delete a snippet. |
| Expand Last Used Snippet | Expand the snippet you used most recently and return the text. |
| Expand Most Used Snippet | Expand the snippet you use most often and return the text. |
| Set Snippet Expansion Mode | Switch between pasting to the application, copying to the clipboard, or both. |
| Show Snippet | Reveal a snippet in the Snippety window. |
| Create Snippet in App | Open Snippety's new-snippet editor, optionally pre-filled from the clipboard. |
| Edit Snippet in App | Open a snippet in Snippety's editor. |
Collections
| Action | Description |
|---|---|
| List Collections | Return all collections. |
| Show Collection | Reveal a collection in the Snippety window. |
| Delete Collection | Delete a collection and every snippet inside it. |
Tags
| Action | Description |
|---|---|
| List Tags | Return all tags. |
| Create Tag | Create a tag. |
| Rename Tag | Rename a tag everywhere it's used. |
| Delete Tag | Delete a tag and strip it from every snippet. |
| Add Tags to Snippets | Attach one or more tags to one or more snippets. |
| Remove Tags from Snippets | Detach tags from snippets. |
Expanding Placeholders
Find Snippet and List Snippets can resolve the snippet's template for you - use the Expand Snippet (or Expand Snippets) parameter.
Only placeholders that need no user input are resolved. Placeholders asking for values fall back to their defaults, so the shortcut never stops to show a form.
Snippet Properties
Actions returning a snippet expose these properties, which you can use in the following steps of your shortcut:
- Id, Name, Keyword, Description, Format
- Collection, Tags
- Template - the raw template, with placeholders untouched
- Expanded Template - the resolved text, when expanding was requested
- Expand Counter, Created Date, Last Updated Date, Last Used Date
- Deeplink - a
snippety://link to the snippet, see Deeplinks
Tips
- Combine List Snippets with Choose from List to build your own snippet picker with any filters you like.
- Expand Last Used Snippet returns text, so you can pipe it into any other action - sending a message, filling a form, or writing a file.
- If you prefer the terminal over Shortcuts, the same operations are available through the CLI.