kizu Posted May 18, 2016 Posted May 18, 2016 In Alfred 3 there are automatically expanded snippets by keywords. They are awesome and work almost flawlessly after enabling the appropriate accessibility feature. As I understand, as you already have the code for detecting those keywords (I guess, by catching the consecutive key presses?), it shouldn't be hard to allowing using those keywords to trigger workflow actions. This would allow us to call workflows from any textual input. So, instead of at first calling Alfred or a specific command here, you could just write the keyword for this command and alfred would either call the action or present you with the alfred input window for your workflow. After calling the workflow the keyword should be deleted from the input, and you should have a way to replace it with the workflow's result. That's the basic what could be done with catching the keywords, but what would be even cooler — catching non-static keywords by regexps. Instead of a static keyword like `foobar`, you could set it to `foo(\d+)bar`, for example, and it would call the workflow as soon as you'd write somewhere `foo1bar`, `foo3434bar` etc., with the variable parts of the regex match as input you could use in your workflow. This would open a lot of possibilities for workflow authors. fredcallaway, chill and zzzirk 3
_Sascha_ Posted May 20, 2016 Posted May 20, 2016 More detailed request, but already requested here. +1 | Here, too. Benjamski 1
FroZen_X Posted May 29, 2016 Posted May 29, 2016 Check this out: https://twitter.com/boastr_net/status/736845599128100864 Gotta have to play around with it, but this and Alfred 3 in combination....holy moly
aaron Posted June 2, 2016 Posted June 2, 2016 +1, also registered here just to suggest this! This would make it possible for me to drop TextExpander.
chill Posted March 2, 2018 Posted March 2, 2018 Hi, is there any update from the developers on the last part of this feature with regex matching?
Andrew Posted March 7, 2018 Posted March 7, 2018 @chill snippet triggers were added in Alfred 3.4 https://www.alfredapp.com/help/workflows/triggers/snippet/ As for regex matching of snippet keywords, this isn't available. Cheers, Andrew
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now