Yesterday, we shared one of the upcoming Alfred 3 features on Twitter (Follow @alfredapp if you don't want to miss these!). Today, we want to give you more details on this exciting new addition.
For a long time, the Snippets feature has been incredibly popular, allowing you to save your most frequently used text clips for quick access from the Snippets Viewer.
In Alfred 3, you'll boost your productivity to new heights; You can now expand your snippets automatically in any app by typing your keyword, without popping up Alfred's Snippets window!
![Snippets Expansion in Alfred 3](/blog/announcements/alfred-3-sneak-peek-snippets-expansion/snippets-flip.gif)
Of course, you can still pop up the Snippets list if you can't remember your keyword or want to preview the text before it's expanded.
We've added Snippets collections, making it easier to organise and group your snippets. You can also share these collections with friends and colleagues. And of course, if you sync your Alfred preferences (via Dropbox, for example), all your snippets are available on your multiple Macs!
![Snippets Preferences](/blog/announcements/alfred-3-sneak-peek-snippets-expansion/snippets-prefs.png)
If there are snippets you don't want to auto-expand, you can select which ones to exclude. You can also include dynamic placeholders into your snippets to insert the current date and time.
The Million Dollar Question: When will Alfred 3 be ready?
We're thrilled about how v3 is shaping up and we can see that you are too! We can feel your excitement with every tweet we see, and can't wait to share Alfred 3 with you.
As with all significant updates - and this is a very significant one - there needs to be quite a bit of testing and verification before release, to ensure you can seamlessly update from Alfred 2 with all your settings, and carry on being productive without interruption.
We're already deep in the process of refining and testing Alfred 3, and we hope to have the first public beta available to all eligible Powerpack users by the end of this month.
Don't forget that if you buy an Alfred Powerpack license or upgrade now, you get your Alfred 2 Powerpack instantly AND you'll receive a free upgrade to Alfred 3 as soon as it's available.
We have another little sneak peek at Alfred 3's workflows for you today!
For version 3, numerous aspects of Alfred's workflows have been updated, improved and tons of new features have been added. As a result, every facet of workflows need to be tested thoroughly to ensure the features work exactly as expected.
Anyone with programming experience will appreciate that this can be a laborious process. Automation can help speed things up, as well as avoid human error (and human distraction - oh look, new tweets!)
So how are we doing this? Workflows have become so powerful that we're now using workflows to test workflows! (You wouldn't believe the number of Inception jokes this has led to...)
Creating a "Pass/Fail Test" workflow
Without any scripting, we've created some great unit tests for the new "Transform" utility object, which takes the input and performs one of the following transforms: Trim Whitespace, Upper Case, Lower Case, Camel Case, Reverse String, Strip Diacritics and Strip Non-Alphanumeric.
Let's take a look at the workflow in more details. The keyword "utest" launches the workflow; a new unit-tests.txt file is created in a specified location (overwriting if a previous one exists), so that the results of each test can be appended to the file.
![Alfred 3 workflows - Unit Testing](/blog/tips-and-tricks/testing-alfred-3-using-alfreds-own-workflows/unit-tests-workflow.png)
The JSON utility object (in yellow) allows you to modify the workflow stream dynamically; argument, configuration and variables. The string we want to test is set as the JSON's output argument, the test name and the expected result are added as variables. In this workflow, each yellow object sets up the test for its connected Transform object:
![Alfred 3 workflows - Unit Testing](/blog/tips-and-tricks/testing-alfred-3-using-alfreds-own-workflows/unit-tests-config.png)
Has the test passed? Each Transform object is connected to two Filter objects, one for pass (green) and one for fail (red). The green filter is configured to only continue if the input is equal to the expected value, the red filter is configured to only continue if the input is not equal to the expected value.
We have used the variables we set earlier to configure the Filters:
![Alfred 3 workflows - Unit Testing](/blog/tips-and-tricks/testing-alfred-3-using-alfreds-own-workflows/unit-tests-passed-filter.png)
To tidy up the results, we use an Argument utility, where we output whether the test has passed or failed (depending on which filter they are connected to), the name of the test (variable), and the processed text from the Transform utility being tested:
![Alfred 3 workflows - Unit Testing](/blog/tips-and-tricks/testing-alfred-3-using-alfreds-own-workflows/unit-tests-arg.png)
Each result is appended to the file created earlier.
When the test finishes, a Notification pops up to let me know, and the unit-tests.txt file opens for me to look at the results. Wonderful, every object has passed!
![Alfred 3 workflows - Unit Testing](/blog/tips-and-tricks/testing-alfred-3-using-alfreds-own-workflows/unit-tests-output.png)
Another advantage of creating these tests now is that we can run them during testing of future releases, as part of regression testing, making it a huge time saver!
In a future post, we'll show you how we could simplify this workflow even further by dynamically configuring the Transform objects in the yellow JSON utility, so that we can connect them to a single Transform object, instead of multiple ones.
With every day that passes - and every test that passes with flying colours - we get a step closer to Alfred 3 being ready. We can't wait to see what amazing things you'll create with the infinitely more flexible workflow objects in Alfred 3!
Stay tuned for more news and sneak peeks. Follow us on Twitter (@alfredapp).
On Monday, we announced Alfred 3 and shared the first few sneak previews of the new features.
It's been so uplifting to finally share with you that version 3 is on its way, after months of work. The enthusiasm and excitement we've seen this week from the Alfred community has been amazing. It truly is a fantastic energy boost to help us along the final stretch ahead of release! :)
We’ll be sharing more sneak peeks and details about the new features and improvements in the next few weeks.
In the meantime, grab a new license or upgrade your existing license to get a v3 license upgrade for free. Need more information? Take a look at the Alfred 3 announcement post for more details.
This week, Alfred celebrates his 6th birthday. While eating birthday cake is always exciting, it's with even greater excitement that we can finally announce that Alfred version 3 is on the way, and we have a great deal for everyone!
The new features and improvements are shaping up beautifully; Vastly more flexible workflows, significantly improved clipboard history and snippets, and a fully overhauled theme editor, amongst the many changes you'll see.
There are also numerous improvements under the hood, ensuring Alfred runs even more smoothly as you work.
Workflows
Workflows have evolved to be much more flexible, allowing you to lay out and connect objects in any way you like. We’ve added object chaining, connection filters, multi-objects selection for moving, copying and pasting, query text processing, and enhancements to many of the existing workflow objects, along with some great new ones too.
In the coming weeks, we’ll be dedicating more posts and videos to introducing these new workflow features, so that you can make the most of them without a single line of code.
![Alfred version 3 - Workflows](/blog/announcements/alfred-v3-is-coming/v3workflows.png)
Theming
The new intuitive theme editor makes it much quicker and easier to create themes, with per-theme blur settings, better control over spacing and borders, user-defined fonts and easier theme sharing.
![Alfred version 3 - Theming](/blog/announcements/alfred-v3-is-coming/v3theming.png)
Clipboard and Snippets
The new clipboard history brings multimedia content; text, images and files. The overhauled snippets editor adds snippet collections, importing/exporting of snippet collections for easy sharing and direct access to the snippets viewer via its own hotkey.
![Alfred version 3 - Multimedia Clipboard](/blog/announcements/alfred-v3-is-coming/v3clipboard.png)
And much, much more...
These features just scratch the surface of the wonderful changes you'll see in this new release. Version 3 will be even better and more customisable to fit the way you use your Mac, and to make you more productive than ever.
We'll be releasing more information and new sneak peeks over the coming weeks, so be sure to follow us on Twitter at @alfredapp and sign up to our newsletter (at the bottom of our website or in Alfred's General preferences).
Get Ready for Version 3
Get your hands on a great deal ahead of the version 3 release:
-
New to the Powerpack? Buy a license now and get a free upgrade to v3.
-
Bought recently? If you purchased a license in 2016, you'll also get a free upgrade to v3!
-
Got a v2 license bought before 2016? You get a great deal too! Transform your Single User license into a Mega Supporter by simply paying the difference, and get a lifetime of free upgrades!
Note: If you bought a pre-2016 Family license, don't worry, you'll also get a great upgrade deal once Alfred v3 is released.
Thank you so much for being part of the Alfred community over the past few years, and here's to many more happy years of productivity. :)
Cheers,
Vero & Andrew
![Alfred is 6 years old](/blog/announcements/alfreds-6th-birthday/6yearsold.png)
Note: While this promotion is now over, you can still upgrade to v2 or buy a new v2 license and get a free upgrade to version 3 when it becomes available!
Over the past six years, Alfred has made millions of people more productive on their Mac.
Today is Alfred's birthday, and this week, we're offering you a 10% discount (This promotion is now over) on the Powerpack! We'll be celebrating all week with giveaways and exciting news, so stay tuned.
Be sure to follow us on Twitter at @alfredapp, and sign up to our newsletter in-app or in our website footer if you don't want to miss anything this week.
Grab your Powerpack license by Friday 4th March, 2016, to take advantage of the birthday discount - We're applying the discount to all new purchases at checkout, so no need for codes.
Don't forget to share the love with your friends, so that they can boost their productivity too! :)