Jump to content


Community Hero
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by deanishe

  1. Alfred remembers and prioritises what you've chosen in the past. It also prioritises more recently accessed files/folders, so you can bump something up Alfred's results by opening it, and get Alfred to remember it by selecting and actioning it.
  2. A more sensible approach would be to change fuzzylist.py to accept a filename as an argument and use the same script for every Script Filter. Basically, theFile = sys.argv[1]
  3. Alfred 4 has an awesome new internal search. Use keyword ? to search Alfred’s own features and your workflows, e.g. ?1p will immediately show you the 1Password integration, and actioning the item will take you to that page in Alfred Preferences.
  4. The "global" one enables/disables the per-snippet option. It gives you an easy way to turn off all auto-expansion (and Alfred's keystroke monitoring).
  5. It is. The "snippets" directory in your prefs bundle contains the canonical data. If you add or change files in that directory, Alfred should pick up the changes immediately. snippets.db is just a cache.
  6. Alfred doesn't concern itself with directories. The command will be run in whichever directory your terminal opens the new tab or window at.
  7. In what exactly? I mean, nobody cares in the least about OAuth itself. So what's the payoff to users that would make implementing it worthwhile? There are already workflows for all the services you listed.
  8. Alfred doesn't show itself in its application search.
  9. It's basically just what it looks like: a zip file (or folder when extracted) with a bunch of JSON files in it. You don't need an info.plist. I'm not sure if the filenames actually matter, either. The UID is just a UUID. That can be basically any string, as long as it's unique.
  10. Yeah. Your code will work because p.stdout.read() won’t exit till all the pbpaste data has been read, but it doesn’t actually wait for the program to exit (which it should and you should normally check that it didn’t throw an error). The code using communicate would be: import subprocess def get_clipboard_data(): p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE) data, _ = p.communicate() if p.returncode: # pbpaste exited with non-zero status raise RuntimeError('pbpaste exited with: %d' % p.returncode) return data
  11. Aye. It really sucks to implement. The idea is good (make developers jump through a few more hoops to make things dead simple for users), but it was designed for server-to-server authorisation and sucks for client–server. It's actively terrible for open-source and self-hosted software.
  12. Literally where you want the query text to be inserted. You don't need ? or = because this URL pattern doesn't use them. https://context.reverso.net/translation/english-german/{query} And set “Encode spaces as” to +
  13. The link works fine for me. Can you be more specific? Where are you setting up a query? Where is the "corrupt" link? What's wrong with it?
  14. I'm sure it was a deliberate decision to not allow user-written code to run without being explicitly called by the user. Performance is a super-high priority, and allowing arbitrary workflows to run whenever Alfred is opened isn't really compatible with that. Me, neither, but that's the way it will go down if this Script Filter trick catches on. Neither workflow developers nor users will show any restraint in building or installing such workflows because the former always think their own programs are special cases, and the latter tend not to think about such t
  15. I'm guessing you don't realise that what Raycast is doing is about 10% of what you're actually requesting. OAuth is very complex to implement. Dealing with your own application's various keys and secrets and scopes is one thing. Building something that can handle arbitrary application IDs and scopes is a whole different ballgame.
  16. Thought the same when I saw it. So clever. I was wondering if you'd got the idea from that workflow or come up with it independently.
  17. Good guess by me there Would you consider posting your code for incrementally reading from a subprocess for people who run into the same problem in the future?
  18. It sounds like you need to put a rich-text hyperlink on the clipboard. Alfred can put RTF on the clipboard, but you'll have to generate the RTF yourself.
  19. Alfred doesn't impose any restrictions. It's impossible to say for sure because you haven't provided the workflow and problematic data for us to run, but if it's a large amount of data, it's possible that an IO buffer is full. Try reading the output from pbpaste line by line instead of trying to load it all into memory at once.
  20. I'm certain it's in-memory only. Goes away when you restart Alfred. I'd love to see a larger, searchable history. I'd like to be able to easily go back to previous searches in Alfred the way I can in my browser.
  21. If you're using it to look up shell commands, you might want to look into using ripgrep and fzf to build a terminal-based version. fzf is awesome for building Alfred-like shell tools.
  22. Took me a minute to figure out what you'd done there. That's another very clever solution. OTOH, it also kinda is. It'd be a terrible idea to convert all your workflows to run like this. But one workflow adding max. 3 results is just pure clever, imo. No luck fiddling with the "Run Behaviour" settings?
  • Create New...