Jump to content

Define alternate text for modifier keys at item level


_mk_

Recommended Posts

I have a script filter that shows detailed information of an OmniFocus task. I would like to add trigger actions based on the information that was selected and the modifier key that was pressed.

 

OF-TaskActions_oftd.png

 

So for example selecting the project would result in the following actions:

  • NO MODIFIER: list tasks of project
  • ALT: change project

Selecting the context would trigger the equivalent actions for the context.

 

Currently, Alfred only allows to specify an alternate subtitle per modifier key with no regard to the selected result. I would suggest to extend this functionality to override the "global" modifier subtitle on item level:

 

<items>
    <item uid="myuid" arg="myarg">
        <title>My title</title>
        <subtitle>My default subtitle</subtitle>
        <icon>icon.png</icon>
        <alt>My subtitle when pressing ALT</alt>
        <cmd>My subtitle when pressing COMMAND</cmd>
        <ctrl>My subtitle when pressing CONTROL</ctrl>
        <fn>My subtitle when pressing FN</fn>
    </item>
</items>

This would allow for more flexibility when using modifier keys.

Link to comment
Share on other sites

While this is quite a nice idea, it doesn't quite conceptually fit with Alfred workflows as the actual action performed is defined by the connection out of the script input and the action, not the input.

 

While this conceptual separation may not seem important now, it will do more in the future.

 

I'll have a think about how to best address this.

Link to comment
Share on other sites

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