Clipboard History and Snippets
The Clipboard History and Snippets feature, part of the Powerpack, is an incredibly useful tool to help you be more efficient.
With Alfred's Clipboard History, you don't need to worry about losing bits of text you've copied but forgot to paste earlier; It's all there in your searchable history.
You can also save your most-used text snippets to paste with a hotkey or keyword. If you're feeling fancy, you can also merge selected text to your existing clipboard content.
In the Clipboard preferences, you'll find the following:
Using Clipboard History
By default the Clipboard is disabled for privacy reasons. Before you can start using the Clipboard History feature, you need to enable it by going to the Preferences panel, under Features > Clipboard.
Activate the Clipboard History by checking the box and choosing from the dropdown menu how long you want Alfred to remember your clips for; 24 hours, 7 days, 1 month or 3 months.
When you pop up Clipboard History viewer using your hotkey, Alfred will show the latest 50 clips by default. To see older results, simply start typing any word or phrase from the original clip you copied to filter down to the results you need.
You can customise the hotkey and keywords used to show the Clipboard History viewer.
You can clear your entire clipboard history by typing "clear" in Alfred's main search box and choosing whether you want to erase the last 5 minutes, 15 minutes or all of Alfred's history.
By default, Alfred ignores popular password applications like the OS X Keychain Access and 1Password, so that you don't inadvertently copy a password to your clipboard.
You can add more applications you want Alfred to ignore by dragging them into the Ignore Apps box. As a result, Alfred will not add any text copied in these apps into your history.
Use Alfred's Snippets to save your most commonly used bits of text; addresses, directions to your office, frequently used code snippets, etc.
Creating a Snippet
Under the Features > Clipboard > Snippets preferences, you can create new snippets with a keyword and a description.
To add a snippet, click the + button in the bottom right of the Snippets preferences.
When creating snippets, you can include dynamic text such as the current date, time or the contents of your text clipboard. Take a look at the Dynamic Placeholders for more details on formatting your dynamic text in snippets.
Accessing your Snippets
Once you've created a snippet, you can access it in a few different ways:
1. Using the Clipboard Snippets window
The easiest way to access your clipboard snippets is to pop up your Clipboard History window (with Cmd + Opt + C as default) and select "All Snippets" at the top.
This will show your snippets collection and you can select the appropriate one to paste to the underlying app. You can also press Cmd + C to copy it to clipboard.
Note that the "Show Snippets at top of Clipboard History" checkbox must be ticked in the Snippets preferences for "All Snippets" to show in the Clipboard history, so if it isn't visible in your clipboard, be sure to check your settings.
2. Using the Alfred search box
If you remember the keyword for your snippet, you can access it directly from Alfred's search box. Type "snip" followed by your keyword to bring up the specific snippet you need. Again, you can either press return to paste to the underlying app or Cmd + C to copy it to your active clipboard.
The "snip" keyword can be changed in Alfred's preferences under Features > Clipboard > History or disabled altogether.
Using Clipboard Merging
When Merging is active in your Powerpack preferences (under Features > Clipboard > Merging), hold Cmd and double-tap C (Cmd + C + C) quickly to append the currently selected clipboard item to the previously copied text in Clipboard History.
You'll hear the OS X "Purr" sound to confirm the item has been successfully appended.
Clipboard Advanced Settings
In the Clipboard Advanced preferences, you'll find two additional settings to tweak how you want your clipboard to behave.
You can choose whether you want Alfred to auto-paste to the currently active application. Pasting on Return is active by default.
You can also set a maximum clip size if you frequently copy very large bodies of text. Alfred will then ignore any copied text over the specified limit to prevent accidental Clipboard History bloating.
Troubleshooting the clipboard
If you're having any issues with Clipboard History, such as your clipboard not saving clips, take a look at the Clipboard History troubleshooting page.