Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

himat's Achievements

Helping Hand

Helping Hand (3/5)



  1. I made a workflow and exported it as a .alfredworkflow file. When I doubled clicked the file to install it, it loaded in Alfred, but the snippet keywords in the snippet trigger were not loaded. Is this expected behavior? Is there any way to save the snippet keywords in the snippet trigger I created originally into the workflow?
  2. I should've explained better, that was one example. I want to make a natural language datetime input. So I should be able to type `;3d;` for 3 days from now, `;July 2;` and it'll insert July 2, 2020, `;3h;` for 11:26pm, etc. So I don't want to hardcode all of these since there are so many.
  3. I want to run a program every time I type something like ";today;" But is there any way right now to do a pattern matched snippet so that I could have a snippet using regex like ";.*;" ? Basically I want to make a date workflow where if I type in ";tomorrow;" it will replace that text with tomorrow's date. This seems like it would be a lot more seamless to use rather than having to cmd+space to bring up alfred, typing in the workflow keyword, and then typing in "tomorrow".
  4. If I have even 10 snippets, then this means that for every single keystroke I perform, that pattern matching is being done for each key right? Wouldn't this become very bad for my CPU to do this continuous matching every time? Should I be careful of adding too many snippets?
  5. Thank you - it works now!! Great insight.
  6. Here's the workflow: https://www.dropbox.com/s/18e6nwg6om4yymh/snippets with scripts.alfredworkflow?dl=0 You should copy some text to your clipboard, then type ".title", and the text should be turned into title case, but it doesn't work within alfred for some reason. Alfred 4.0.7 [1131] macOS Mojave 10.14.5 System bash (via `bash --version` in terminal): GNU bash, version 5.0.2(1)-release (x86_64-apple-darwin17.7.0) Thank you
  7. Making it a script fixed that problem, but it seems there's still some problem with used `sed` in alfred. string="helLO tHEre" echo "$string" | sed 's/.*/\L&/' This works in the terminal and outputs "hello there". But when I run (even as an external script) within Alfred, it outputs "LhelLO tHEre". Why doesn't this work?
  8. I tried running this script in a workflow #!/usr/local/bin/bash string="a FeW WOrdS" string=${string,,} echo "$string" But then in the Alfred workflow debugger, I get /Users/me/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A4DF2A96-E3FC-4D43-BAEC-BD9CDFAA265E: line 10: ${string,,}: bad substitution This script works in my normal terminal, so why doesn't it work in an Alfred script?
  9. What's also weird is that in any other text box, like in this comment box that I'm typing in right now, if I put the setting on the slowest, I can see it getting slower when it replaces the keyword. But in the chrome omnibar, the speed is actually not reduced. The keyword gets replaced at the same speed as on fast.
  10. I put it on the slowest setting, and it didn't change anything.
  11. This is a problem for me only in Chrome. In the omnibar, when I type in the snippet keyword "mail0", it should replace it with "someurl". But instead, it's making it become "mailsomeurl", so it's not deleting the entire keyword for some reason. Alfred 4.0.3 Build 1092, Thursday 4th July 2019 MacOS Mojave 10.14.5
  12. Github Download here This is for when you already have an image you just copied in your clipboard already, and you want to upload it to Imgur and get a link. Activate via `imgur` Alfred keyword No other arguments required This workflow uploads the most recent clipboard item to imgur and pastes the uploaded image URL into your clipboard. It also opens a browser tab with the uploaded image automatically. Note that if your most recent clipboard item is not an image, then you will be shown an error and nothing will be uploaded.
  13. @deanishe Is it possible to get the full path of a brew command programmatically though? I tried to use $(which pngpaste), but running that in an Alfred bash script can't find it.
  • Create New...