Jump to content

[Alfred 2.5 b296] Making a behaviour change in Script Filter "With Space, Argument Optional"


Recommended Posts

Hi All,

 

I want to make a little behavioural change for [script] input filters where you have a keyword defined as with space, argument optional. I essentially want to prevent an unnecessary second re-run of the script with argument '' when typing the space following the keyword.

 

Here is what currently happens if you have a keyword 'fruit' set as with space, argument optional.

 

- Type 'fruit' into Alfred, script is run with arg '' and relevant results are shown.

- Type 'fruit ' into Alfred, script is run with arg '' and (I expect) the same results are shown.

- Type 'fruit a' into Alfred, script is run with arg 'a'.

 

With the change, the behaviour would be...

 

- Type 'fruit' into Alfred, script is run with arg '' and relevant results are shown.

- Type 'fruit ' into Alfred, script isn't run again as arg is the same.

- Type 'fruit a' into Alfred, script is run with arg 'a'.

 
Question: Does anybody have a workflow or know of a workflow which would be affected by this specific case, or the case where Alfred prevents re-running the script if the argument is unchanged such as the example above?
 
Cheers,
Andrew
Link to comment

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...