-
Posts
8,759 -
Joined
-
Last visited
-
Days Won
522
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by deanishe
-
I Sheet You Not: Plug Excel into Alfred
deanishe replied to deanishe's topic in Share your Workflows
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.- 101 replies
-
- excel
- spreadsheet
-
(and 1 more)
Tagged with:
-
Where can I get me one of those technicolour terminal dragons?
-
How to pass a processed {query} to an open url action
deanishe replied to Cheng's topic in Workflow Help & Questions
-
Remote Workflows on Packal
deanishe replied to rice.shawn's topic in Alfred Remote Discussion & Help
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).- 10 replies
-
- Packal
- Workflow Repository
-
(and 1 more)
Tagged with:
-
Alfred access to touch bar? (for workflows or search results)
deanishe replied to dfay's topic in Alfred Feature Suggestions
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. -
How to pass a processed {query} to an open url action
deanishe replied to Cheng's topic in Workflow Help & Questions
You're right. I always forget that Alfred's utilities support regexes. -
Merged the two 1Password 6.5 beta threads.
-
How to pass a processed {query} to an open url action
deanishe replied to Cheng's topic in Workflow Help & Questions
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) -
Workflow to reformat paragraph or combine lines of text
deanishe replied to jonteamere's topic in Workflow Help & Questions
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='') -
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
-
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.
-
Workflow to reformat paragraph or combine lines of text
deanishe replied to jonteamere's topic in Workflow Help & Questions
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. -
Please stop posting this question all over the forum. You already made a thread (two, in fact).
-
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.
-
Can you post the actual error message from the debugger/log file?
-
1Password alternative action "reveal in 1Password"
deanishe replied to urandom's topic in Alfred Feature Suggestions
-
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.
-
Make quicklookurl also work with filepaths
deanishe replied to deanishe's topic in Alfred Feature Suggestions
I know how to do it in other languages. But starting a Perl/Ruby/Python interpreter for every result. Ugh… -
Allow users to detect when Alfred is in focus
deanishe replied to vitor's topic in Alfred Feature Suggestions
As is correct. Ruby's weird -
Allow users to detect when Alfred is in focus
deanishe replied to vitor's topic in Alfred Feature Suggestions
bash variables are case-sensitive, though. COUNTER and counter are two different variables. -
Can you not add your alternatives as additional fallback searches? https://www.alfredapp.com/help/features/default-results/fallback-searches/
-
Allow users to detect when Alfred is in focus
deanishe replied to vitor's topic in Alfred Feature Suggestions
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. -
Make quicklookurl also work with filepaths
deanishe replied to deanishe's topic in Alfred Feature Suggestions
Awesome. Thanks very much. So about those old ladies and their cheese… -
Make quicklookurl also work with filepaths
deanishe replied to deanishe's topic in Alfred Feature Suggestions
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. -
Allow users to detect when Alfred is in focus
deanishe replied to vitor's topic in Alfred Feature Suggestions
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.