Jump to content

mjking

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by mjking

  1. I have a custom search workflow and the url has a hashtag in it. The # is converting to %23 when I search. I see that you can escape quotes, backslashes and dollar signs, but can't figure out how to make it so the hashtag isn't converted.

     

    Here is my workflow. Any help would be appreciated.

     

    $input = trim("{query}");
     
    if ( empty( $input ) ):
    else:
    endif;
  2. I think the script may be the way to go. The dual workflows do the job but it still isn't ideal.

     

    If I setup a workflow with the keyword "gm" and no argument it will open google maps. The problem is if I search "gm Seattle" the next time I type the keyword "gm" Alfred will default to the search workflow and I need to switch to the other workflow. If it is all in one workflow with an if/then statement it would be smart enough to figure out what the user wants.

     

    I'll see if I can figure out the scripting with your PHP library.

     

    Thanks for the guidance.

  3. Thank you. I tried that and it worked.

     

    I still think it is worth considering this as a feature in the future. Instead of having a custom web search and a separate custom workflow for every site that you want to open or search, you could combine it into one custom search or one custom workflow. It would be easier to maintain a list of keywords and sites.

     

    Take a look at shortmarks.com. I think this is a good example of what could be done. For each keyword they have a direct link if there are no arguments and a search link if there are arguments.

     

     

  4. On the web search it would be nice if you could set a fallback URL if no arguments are entered.

     

    For instance if I type "gm Seattle, WA" it will search Google Maps for Seattle. If I just type in "gm" it would go to a fallback URL.

     

    I realize that I can create a second custom search that opens Google Maps when I type gm, but then you are forced to select the action you would like with the up/down arrow keys. It would be faster if it was all built into the web search options.

×
×
  • Create New...