Jump to content

Multiple keywords to trigger the same script filter?


Recommended Posts

I saw this has been asked a few times before (e.g. here) but there wasn't a clear answer.


Since Alfred 4 is coming soon, I would like to throw this into the pot to see if it might be possible.

 

My brain is getting old. It's hard to remember all the different keywords and hotkeys I've set up. To aid myself I like to be able to use multiple keywords to trigger the same workflow step.

 

Example, I have a workflow for connecting Bluetooth devices, that I trigger using `bt`

instead of just "bt" I'd like to add a few more keywords, e.g. "blue", "connect", "audio" etc.

 

I know I can duplicate the script filter opject and connect its Output to the same step—it's a poor man's workaround, but it'd be cleaner and better to allow multiple keywords, such as this:

image.png.3379a2303b0af05d223c0d96c5e2a3bc.png

 

image.png

Link to comment
Share on other sites

  • 2 weeks later...

I would also say, that allowing search with the name of the workflow would be a better solution. I can memorise maybe 5-6 workflows I use on the regular basis, but I have no chance to remember abbreviations for the rest of them. Launchbar makes it right - I can assign abbreviations, but I will always find them also via the usual "fuzzy search"-like entry. Since Alfred these days relies so much on workflows, we need a better way to find them. 

Link to comment
Share on other sites

There is kind of search now in Alfred 4 - with "?" keyword you can find workflows too, but it will not show you the keywords and if you activate workflows found, it will just open them in the workflow editor. You can user this workflow instead as a workaround for now: http://www.packal.org/workflow/alfred-keyword-help and hope that at some point we don't have to rely solely on keywords :)

 

As an idea - it would already help, if search in workflow names could be configured as one of the default fallbacks. 

 

 

Link to comment
Share on other sites

  • 4 months later...
  • 9 months later...

Did this ever happen?

On 5/19/2019 at 1:44 PM, luckman212 said:

I saw this has been asked a few times before (e.g. here) but there wasn't a clear answer.


Since Alfred 4 is coming soon, I would like to throw this into the pot to see if it might be possible.

 

My brain is getting old. It's hard to remember all the different keywords and hotkeys I've set up. To aid myself I like to be able to use multiple keywords to trigger the same workflow step.

 

Example, I have a workflow for connecting Bluetooth devices, that I trigger using `bt`

instead of just "bt" I'd like to add a few more keywords, e.g. "blue", "connect", "audio" etc.

 

I know I can duplicate the script filter opject and connect its Output to the same step—it's a poor man's workaround, but it'd be cleaner and better to allow multiple keywords, such as this:

image.png.3379a2303b0af05d223c0d96c5e2a3bc.png

 

image.png

 

Link to comment
Share on other sites

  • 1 month later...

I'm surprised there isn't more demand for this feature, I constantly find myself typing different keyword triggers when I want to perform the same action. For the same reason, I also set up multiple duplicate search engines in my browsers that use slightly different keyword variations but all point to the same custom URL query (like ama, amz, amzn that all perform the same custom Amazon.com search when typed in omnibox and Tab key is pressed)

 

When I'm in a moment of mental flow and I suddenly want to check for X on site Y, I want to do so the quickest way possible with the minimum effort/resistance. Same goes for the terminal, once I find myself using a command more frequently, I set a few minimum-character aliases for it like dk, dock, dkr (all aliasing docker) which allows my brain multiple neural pathways for it to be correct in the midst of focusing on a more complex task. I find that it helps my flow state significantly because there's less chance of mental disruption especially when recalling newly created aliases/keywords where the brain's connections aren't very strong yet and will still require more intensive memory lookups during your typing thought process.

 

All that aside, does anyone have any workarounds for this with Alfred workflows other than duplicating them and setting different keywords? Would be nice to have more low level access to Alfred's triggers but in lieu of that I wonder if a meta-workflow workflow could be worth experimenting on. If it would allow one to set a number of aliases for any of a user's currently installed workflows it could be potentially useful.

Link to comment
Share on other sites

  • 4 weeks later...
4 hours ago, chris said:

so I really want to use "message", "dms", and "send", etc as aliases for several searches/workflows). 

 

The immediate solution is to create a few keyword objects to connect into your workflow. Duplicate your main keyword object then change the keyword, and connect it to the same workflow :)

 

Cheers,
Vero

Link to comment
Share on other sites

6 hours ago, Vero said:

 

The immediate solution is to create a few keyword objects to connect into your workflow. Duplicate your main keyword object then change the keyword, and connect it to the same workflow :)

 

Cheers,
Vero

 

Right, but this would mean duplicating those keywords in each of the workflows in which I want to use these keywords, right?

 

I think that's probably fine, it's just a little inefficient since I'm creating workflow toolkits for several services with similar features (Twitter, Instagram, etc) and will need to sync/update these synonyms across all of the toolkits.

Link to comment
Share on other sites

2 hours ago, dfay said:

Why wouldn’t you put them all in one workflow per service?

 

Yes, that's what I've decided I'll do:

 

image.png.ee608c5a2eaf05f06ead51912f12c081.png

 

image.png.1fedcd180689b3a2821bb27592c486a2.png

 

image.png.9e4dc79c9bba5c5b51f580b3851ac13b.png

 

Quote

Alternately use BBEdit or the like and do a multifile search of the plists?

 

Yes, I'll likely end up doing that too, once I standardize on the synonyms. 

 

What I would prefer would be to edit one of those keyword objects and just add synonyms or aliases directly, just to keep the Workflow layout cleaner. 

Link to comment
Share on other sites

  • 2 weeks later...
On 10/12/2020 at 10:24 PM, chris said:

What I would prefer would be to edit one of those keyword objects and just add synonyms or aliases directly, just to keep the Workflow layout cleaner. 


Yep that would be pretty useful! I like the concept of 'alias' since that is already a familiar term for macOS users.

Something like this would look nice:

image.png.67345d1a5dc4b0fb0de740f412b6a1b2.png

 

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 1 year later...
  • 4 months later...

Since this hasn't made it into Alfred 5 (yet!) I came up with a workaround, which is a custom Script Filter workflow that uses multiple "match" keywords and then fires the original object using the ExternalTrigger / URL Handler action. It's clunky but "it works" for now... If anyone wants to see how this is done, I can publish a template to GitHub if I get a bit of time.

Link to comment
Share on other sites

  • 2 months later...
On 11/19/2022 at 8:47 AM, luckman212 said:

Alright. I'm going to work on it a bit, I have some ideas on how to make it more modular and user-friendly. Once it's ready I'll post it up.

did you every post this up? I'm curious how you made it work as I'm looking to do something similar. thanks! :]

Link to comment
Share on other sites

On 5/19/2019 at 7:44 PM, luckman212 said:

I saw this has been asked a few times before (e.g. on bigwinwall.com/us/) but there wasn't a clear answer.


Since Alfred 4 is coming soon, I would like to throw this into the pot to see if it might be possible.

 

My brain is getting old. It's hard to remember all the different keywords and hotkeys I've set up. To aid myself I like to be able to use multiple keywords to trigger the same workflow step.

 

Example, I have a workflow for connecting Bluetooth devices, that I trigger using `bt`

instead of just "bt" I'd like to add a few more keywords, e.g. "blue", "connect", "audio" etc.

 

I know I can duplicate the script filter opject and connect its Output to the same step—it's a poor man's workaround, but it'd be cleaner and better to allow multiple keywords, such as this:

image.png.3379a2303b0af05d223c0d96c5e2a3bc.png

 

image.png

 

Great idea. I was thinking about something like this also and I'm glad you're trying to realize it. Keep up the good work and I'll be happy if you post the result ✌️

Edited by Daylighter
Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...