Jump to content

Mehdi

Member
  • Posts

    16
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Mehdi reacted to vitor in Youtube Search   
    You may also want to try @deanishe’s Searchio! It even does auto-suggestion as you type.
     
  2. Like
    Mehdi reacted to dunkaroo in Youtube Search   
    Better yet you can change the trigger key to just "y" instead of "youtube" (less typing), It's under "Feature" -> "Web Search"
    Alfred is super flexible.
  3. Like
    Mehdi got a reaction from dunkaroo in bash : {query} with spaces in it   
    I added the --fail and --silent.
    Also, you're right it's instant, I was uploading a youtube video in the background that's what was slowing the internet down.. I feel like such a newbie on this one, sorry 
     
    Thanx a ton for your help, now I have Airmail, Trello and Youtube all perfectly setup on Alfred .. feels like the beginning of a love story between a man and a software 
     
     
    Mehdi
  4. Like
    Mehdi reacted to Vero in Youtube Search   
    Hi @Mehdi,
     
    You can type "youtube" followed by your keyword directly into Alfred, press return and your default browser will be launched with the YouTube results.
     
    Also worth taking a look at the "Should I watch this movie?" workflow example built into Alfred, as it gives you a few ideas on how you can search for movies, including using the built-in YouTube default search  Some fun ways to build upon your existing workflow, if you fancy it!
     
    Cheers,
    Vero
  5. Like
    Mehdi reacted to vitor in bash : {query} with spaces in it   
    The problem for the delay might be in your connection or a temporary blip on their side. I just did the test and adding the card seemed instant.

    As for the error you’re getting, that isn’t really an error — it’s just that curl’s progress is output to stderr. Nothing to worry about. Since you actually don’t care about seeing the progress, add the --silent flag to the curl command.

    Also, I suggest you change -f to --fail. Short flags are fine when typing a command but are less useful in a script where comprehension is more important than speed. When you can understand what a command is doing without having to open the man page and check every flag because they consist of a single letter, you have a better experience and might be more inclined to fix bugs if an outsider to the code (and many times you’ll be your own outsider, as you don’t remember your code).
  6. Like
    Mehdi reacted to xilopaint in Airmail workflow   
    It's a keyword with no arguments. You just have to hit enter with no spaces and the compose window will open.
  7. Like
    Mehdi reacted to vitor in bash : {query} with spaces in it   
    Hello and welcome, @Mehdi,
     
    For one, you should be quoting that URL ('https://bot.trellobutler.com/scripts/aaaaa?title={query}'). But apart from that, if you want to be safe and URL-encode every character, keep selected in the Escaping options Backquotes, Double Quotes, Backslashes, and Dollars. In your code do:
    your_text="$(perl -MURI::Escape -ne 'print uri_escape ($_)' <<< "{query}")" curl -f --connect-timeout 3 "https://bot.trellobutler.com/scripts/aaaaa?title=${your_text}"
    The first line URL-encodes every character in your {query} in a your_text variable. The second line uses it.

    That should sort you, but in the future please read the Reporting Problems with Workflows topic and follow it. It gives a nice overview on how to make a report with a better chance of being addressed.
  8. Like
    Mehdi reacted to dunkaroo in bash : {query} with spaces in it   
    This link should help you out.
    or search forum. "query encode", I don't know how to do it but little search helps
     
     
×
×
  • Create New...