Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Everything posted by deanishe

  1. Updated today (v0.2.1). Fixed the above bug and cleaned up workflow generation. Took a lot longer to fix, as I rewrote quite a lot of the generation code. Now, when you generate a new workflow, the red generation elements will be removed from it.
  2. Where can I get me one of those technicolour terminal dragons?
  3. That's what it's always been, imo. It's never really been an other-side-of-the-room app, like BetterTouchTool remove or AirMouse. The lack of support for moving the cursor or typing means you can't do a massive amount without heading back to your Mac. What is lacking in the "sidekick" regard is the ability to switch remote pages automatically based on the active application (unless this has been added since the last time I opened AR).
  4. From looking at the API docs and a few articles, the Touch Bar appears to be tied to the active application, much like the menubar. For workflows to do anything with it, Alfred would have to provide an API, and it would only work while Alfred is active. It'd still be pretty awesome for things like what @dfay is suggesting.
  5. You're right. I always forget that Alfred's utilities support regexes.
  6. Merged the two 1Password 6.5 beta threads.
  7. FWIW, simply replacing https with http is not super robust, as it's possible that https appears more than once in the URL, e.g.: https://web.archive.org/web/*/https://www.alfredapp.com/ Arguably better to use a Run Script with a slightly-modified version of your original code that only replaces https:// at the start of the URL: if query.startswith('https://'): query = 'http://' + query[8:] sys.stdout.write(query)
  8. Easy peasy: from __future__ import print_function import re import sys # Replace any combination of \n and/or \r with a single space print(re.sub(r'[\r\n]+', ' ', sys.argv[1]), end='') from __future__ import print_function import sys # Split text into lines and strip any whitespace at line ends lines = [l.strip() for l in sys.argv[1].strip().splitlines()] # Collect lines into paragraphs paras = [] buf = [] for l in lines: if not l: # empty line, i.e. new paragraph s = ' '.join(buf).strip() if s: paras.append(s) buf = [] else: buf.append(l) # Add last paragraph if there is one s = ' '.join(buf).strip() if s: paras.append(s) print('\n\n'.join(paras), end='')
  9. Big update to v0.5 today. Get it from Packal or GitHub. New features and improvements: Add support for SSH config files (~/.ssh/config and /etc/ssh/ssh_config) Open connections with mosh instead of ssh Better handling of user-specified username and/or port
  10. This is a known "issue". What happens is that Alfred calls the application for each file instead of calling it once with multiple files. The problem is that some applications (can't remember which ones) fail when called with multiple files at once. The same is true for other apps being called multiple times in rapid succession, but fixing those apps would require breaking ones that currently work with Alfred… You can get the behaviour you want with a Run Script action and the open command. Set Language = /bin/bash with input as argv. Use the following command in the Script box: open -a "Name of Application" "$@" You probably want to connect that to a File Action.
  11. How am I supposed to tell what's wrong from "Suddenly stopped working"? Provide the input, the expected output and the actual output. And anything shown in the debugger.
  12. Please stop posting this question all over the forum. You already made a thread (two, in fact).
  13. Never mind. I found and fixed the error in v2.3.1. Enter fuzzy workflow:update in Alfred to install the new version, then fzyup to re-create your fuzzy folders. Note: You'll probably have to restart Alfred 3. It is very bad about noticing when a workflow has been updated from outside its own GUI.
  14. Can you post the actual error message from the debugger/log file?
  15. That doesn't matter. Alfred isn't using your 1P database directly, but rather a file 1P specifically exports for 3rd-party applications. That file is always in the same place, regardless of where you keep your actual 1P data.
  16. I know how to do it in other languages. But starting a Perl/Ruby/Python interpreter for every result. Ugh…
  17. bash variables are case-sensitive, though. COUNTER and counter are two different variables.
  18. Can you not add your alternatives as additional fallback searches? https://www.alfredapp.com/help/features/default-results/fallback-searches/
  19. If I've read the code correctly, COUNTER is the name of the bash var, and counter the workflow var. TBH, I think using a language where workflow vars aren't in the global namespace would be clearer.
  20. Awesome. Thanks very much. So about those old ladies and their cheese…
  21. I know, but that's quite a bit more complicated than using the filepath. Languages other than ObjC don't have all the convenience methods for turning paths into URLs and vice versa. You have to start messing around with network libraries instead, and I wouldn't know where to start trying to percent-encode something in bash.
  22. They should also read, "requests that the script be re-run". "to request that…" for the verb, "a request for…" when it's a noun.
×
×
  • Create New...