Chris Messina Posted April 5 Share Posted April 5 🔥🔥🔥 Link to comment Share on other sites More sharing options...
luckman212 Posted April 5 Author Share Posted April 5 Wow - most underrated feature announcement ever-- This is great! Â Do you know if the keyword1||keyword2 would work in variable substitution mode? i.e. set myVar = "apple||banana" and then set keyword trigger to {var:myVar} ? Â Link to comment Share on other sites More sharing options...
vitor Posted April 5 Share Posted April 5 Yes, it works as a variable. Which means that if your workflow has user-configurable keywords, the user themselves can make that value have multiple keywords by using the ||. luckman212, iandol and Chris Messina 3 Link to comment Share on other sites More sharing options...
luckman212 Posted April 8 Author Share Posted April 8 (edited) One small thing I noticed: Â If you have multiple trigger keywords defined as "foo||bar", you can search "?bar" using Alfred and he will find the workflow, but typing "bar" in Alfred Preferences search does not find it (only finds "foo" or "foo||bar"). This is as of 5.1.2130. Â Edited April 10 by luckman212 Link to comment Share on other sites More sharing options...
Andrew Posted April 11 Share Posted April 11 @luckman212 ah thanks for spotting, I'll get this fixed in the next build Link to comment Share on other sites More sharing options...
luckman212 Posted April 16 Author Share Posted April 16 Thanks for fixing! Looks like it works fine on 5.1.2133 🙂 Andrew 1 Link to comment Share on other sites More sharing options...
Terminal Posted Tuesday at 01:25 PM Share Posted Tuesday at 01:25 PM On 4/5/2023 at 5:22 PM, vitor said: Starting from Alfred 5.1 (currently in pre-release), multiple keywords are supported. This support still seems haphazard. I see that it is using the common || operator found in many programming languages. But now the keyword field cant use || as a keyword trigger ? Which I used to use for a custom terminal command. Why wasn’t the keyword updated to just support a list interface like list filters or similar. Where you can clearly define many keywords, not have to worry about them being slammed together into a tiny text field, and also not be restricted by character usage. Link to comment Share on other sites More sharing options...
vitor Posted Tuesday at 02:14 PM Share Posted Tuesday at 02:14 PM You may disagree with the implementation, but no feature in Alfred is implemented haphazardly. In software there’s always a tradeoff and shoving a list interface into every object that allows a keyword (it’s not just Keywords) would complicate both the interface (user side) and the framework (development side) for something which though highly desired is comparatively niche. Thus we had to reach a compromise. One which both allowed the feature to exist but not be overwhelming (in multiple senses of the word). We arrived at the double pipe as the separator because it’s an incredibly rare choice as a keyword and makes sense due to its use in other contexts. Ideally it wouldn’t clash with any use case, but realistically the alternative would have been for the feature to not exist at all. It’s no different to saying you can’t have your keyword be {var:something}. While technically correct, it being that way allows for much more powerful interactions in a greater array of cases. Link to comment Share on other sites More sharing options...
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