Ingolmo Posted March 27, 2013 Share Posted March 27, 2013 (edited) Hello, I don't know if it's possible to emulate this behavior with a workflow trick (other than duplicate the script filter), but I think it would be useful to allow to have multiple keywords for a single script filter. It could be used to set multiple language keywords (like "weather" and "météo" in french), or just add a shortcut (like "w" or "wiki" for a wikipedia autocomplete workflow) Edited March 27, 2013 by Ingolmo devalias 1 Link to comment Share on other sites More sharing options...
Jasondm007 Posted June 28, 2017 Share Posted June 28, 2017 Hi @Ingolmo - I'm new to Alfred, and was wondering if you ever figured out how to use more than one keyword in a script filter? I'd like to avoid duplicating the script filter a bunch of times with different keywords (within the same workflow), and haven't come across any discussions of this issue beyond your post. Thanks for your help!! devalias 1 Link to comment Share on other sites More sharing options...
Vero Posted June 29, 2017 Share Posted June 29, 2017 @Jasondm007 Given that the original post is over four years old, workflows have evolved significantly since. In Alfred 3, you could add multiple keyword objects before your script filter, one for each keyword. Set them to "No argument" and you'll then be able to hit Enter to launch your script filter. It requires one more press of the Enter key, but may suit your needs However, given the example from the original post using "w" and "wiki", these aren't necessary, as you can just type "w" and press the Tab key when the Wiki workflow is selected, and Alfred will auto-complete the keyword "wiki", ready for you to type your search term. Cheers, Vero devalias 1 Link to comment Share on other sites More sharing options...
Jasondm007 Posted June 29, 2017 Share Posted June 29, 2017 (edited) Hi @Vero, Thanks for getting back to me and for the suggestion! I really appreciate it. Would your method work for script filters that are running queries within Alfred's search box (and then providing you with the appropriate options)? For example, I'm a big fan of Paul Wirth's Do Not Disturb workflow, but I can never remember the precise keyword. It's setup so that when you type "dnd" it will run a query to see if your Do Not Disturb setting is already on. If it is, it will tell you that it's on and then it allows you to select whether you want to turn it off. Of course, if it's off, it does the opposite (See screenshots: normal.jpg and scriptfilter.jpg below). To get around having to remember the precise keyword, I just duplicated the script filter with a new keyword (e.g., not and notifications) and then reattached everything (see screenshot duplicated.jpg). This seemed a little odd, so that's why I posed my question yesterday. I was hoping that you could simply type something like "dnd" OR "notifications" in the script filter, but this seemed like an OK workaround. I tried using the method you describe above (e.g., creating multiple keywords and then having them feed to the script filter or even a normal script), but I couldn't get it working. The query that determines whether your Do Not Disturb setting is on no longer works when using this method. As you can tell, I'm new to Alfred (and am not a programmer). Any advice you may have is most appreciated. Thanks for your help!! Edited June 29, 2017 by Jasondm007 ZDL-alfred 1 Link to comment Share on other sites More sharing options...
manavortex Posted January 15, 2021 Share Posted January 15, 2021 Three years late to the party, but I am having the same issue. Can this be done? devalias, erusev and benlim 3 Link to comment Share on other sites More sharing options...
benlim Posted June 6, 2022 Share Posted June 6, 2022 +1 Can this be done? Especially with the modifiers. This would be incredibly useful! Link to comment Share on other sites More sharing options...
vitor Posted April 5, 2023 Share Posted April 5, 2023 Starting from Alfred 5.1 (currently in pre-release), multiple keywords are supported. TomBenz and Paliz 2 Link to comment Share on other sites More sharing options...
TomBenz Posted April 8, 2023 Share Posted April 8, 2023 On 4/6/2023 at 3:53 AM, vitor said: Starting from Alfred 5.1 (currently in pre-release), multiple keywords are supported. Very easy and elegant way to implement this. thank you 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