MacDaddy Posted April 22 Share Posted April 22 I used to be a heavy user of TextExpander but it was a corporate thing and I don't have it anymore, but I'm hoping I can replicate one of it's features with Alfred, just not sure how. So basically I could trigger a Snippet with TE using ;link When that happened, it popped up a window with two fields, one for text and one for link that I could just type into and tab into the next. When I hit enter, it would wrap the content in Markdown as such: [First Field Contents](https://secondfieldurl.com) Is there a way I can do this with Alfred either using Snippets or a Workflow? I'm not much of a developer myself, so some of the instructions are a bit confusing to me. Any help is appreciated! Link to comment
Stephen_C Posted April 23 Share Posted April 23 While I appreciate it may initially appear to be rather more complex than you need, my Save 'ur URL workflow on the Alfred Gallery does exactly what you want (and, in addition, saves the link to a file). There's an option in the workflow configuration to save the links using markdown. Stephen MacDaddy 1 Link to comment
MacDaddy Posted April 23 Author Share Posted April 23 Thanks Stephen! I'll install it and take a look when I get some time after my learning sessions. Will let you know if I have any questions. Link to comment
sepulchra Posted April 23 Share Posted April 23 And just to add there are always many ways to get something done in alfred. If you did want to create something that mirrored Text Expander where you can trigger the workflow and have it paste in the frontmost app you could do something like this: It uses a snippet trigger that then triggers 2 keyword objects to have you input your title and link, saves them as variables, and then pastes on the frontmost app. You can also look into dynamic placeholders as well. If the link want to paste is always the last thing you copied, you could set it up so instead of a 2nd keyword input, it pastes the most recent item in your clipboard history with {clipboard:0}. Stephen_C 1 Link to comment
sepulchra Posted April 23 Share Posted April 23 Aside from dynamic placeholders, this todo list workflow in the gallery might also give you some ideas. I moved from text expander years ago and this is another example that could help make the adjustment beyond basic snippets. Link to comment
MacDaddy Posted April 23 Author Share Posted April 23 7 hours ago, sepulchra said: And just to add there are always many ways to get something done in alfred. If you did want to create something that mirrored Text Expander where you can trigger the workflow and have it paste in the frontmost app you could do something like this Thanks for this, are you able to expand and show me what you have in terms of contents for the Save the Query portions for getting those setup. Link to comment
Stephen_C Posted April 23 Share Posted April 23 4 minutes ago, MacDaddy said: are you able to expand and show me what you have in terms of contents for the Save the Query portions It will be something like this: Except that instead of theURL Sepulchra will have used link. For the second Sepulchra will have used title. That creates respectively the variables that are recalled in the final copy to clipboard action. In both cases {query} means the information provided by the immediately preceding action in the workflow. Stephen MacDaddy and sepulchra 2 Link to comment
MacDaddy Posted April 23 Author Share Posted April 23 Awesome! I've got it working, thank you so much for this!!!! This is going to save me SO MUCH TIME ❤️ Link to comment
sepulchra Posted April 23 Share Posted April 23 (edited) not to toss out another curve ball but there is always more than one way -- and there are some convenient ways to do this with standard snippets as well and this post explains it fairly well. Edited April 23 by sepulchra MacDaddy 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now