Jump to content

msa

Member
  • Posts

    22
  • Joined

  • Last visited

Reputation Activity

  1. Like
    msa reacted to Wayne Yao in alfred-cheat: manage your own cheat sheets   
    The bug has been fixed :). Thanks for the report. You can also file an issue on Github so that you can be linked to the release directly
  2. Like
    msa reacted to vitor in Dente Azul — Toggle bluetooth and paired device connectivity   
    Usage

    Search your paired bluetooth devices via the btd keyword. Press ↩ to reverse a device’s state (on becomes off, and vice-versa).



    Toggle bluetooth as a whole via the btt keyword.



    ⤓ Install on the Alfred Gallery | Source
     
  3. Like
    msa reacted to vitor in How to bundle workflow dependencies from Homebrew   
    Yes. Unless you call your script via source (which you’ll likely never do, that’s more for your shell’s configuration files).
     
     
    Just so we’re clear here, if you create a function inside a script, that function will have the same fate as the variables — it’ll be forgotten when the script ends and not affect the shell. But if you define a function outside a script, directly in your shell or by sourceing your shell’s startup files, then it’ll affect the shell.
     
     
    You are very welcome! The users that give the most joy to help are the ones that genuinely want to learn.
  4. Like
    msa got a reaction from vitor in How to bundle workflow dependencies from Homebrew   
    Thanks @vitor, very kind and succinct. Exactly what I was looking for. I had no idea that IFS setting in a script doesn't change anything outside the script so I was being as safe as possible (intention). The rest of your feedback is excellent and I'm embarrassed at missing the elif but thankful for catching that. Also, shellcheck - I had never used that before and it's exactly what I needed. I've picked up a lot today and looking forward to implementing the changes. Have a great day/night everyone.
  5. Like
    msa reacted to vitor in Open Most Recent Download; pbcopy   
    If you wanted to do that for the learning process and have questions about how any of those work, ask away.
     
     
    The secret there lies not with pbcopy, but with Bash. pbcopy’s task is “copy whatever I give you as input to the clipboard”. < means “take the file to the right of me as input to the command to the left of me”. If instead we had <<<, it’d mean “take the string to the right of me as input to the command to the left of me”.

    So in this Workflow, if we had <<< instead of <, the clipboard would be populated with the path to the file instead of its contents.

    Key phrases to search for if you want to learn more: “I/O redirection”, “here document”, “here string”.
  6. Like
    msa reacted to deanishe in SmartFolders: Browse and search the contents of your Saved Searches   
    This is a really old workflow and has Alfred 2 paths hard-coded. You need to edit the alfred.py file in the workflow and change Alfred 2/Alfred-2 to Alfred 3/Alfred-3.
×
×
  • Create New...