raguay.customct Posted June 22, 2015 Posted June 22, 2015 (edited) This workflow demonstrates the Haskell Alfred Library. The workflow allows text to be converted to different formats. The following commands are: ht:conv This command takes a string in the Alfred Prompt. You then pick the type of conversion you want. The result is pushed on to the clipboard. ht:start This command starts a dedicated web server for performing the text conversion. ht:stop This command closes the dedicated web server. You then use a GET requests to port 8000 of your localhost with the conversion type and the string. It will return to you the converted string. Example: http://localhost:8000/title/this is a test will return This is a Test There is a hotkey for numbering the lines of text in the clipboard. There is also an external trigger for taking text from the clipboard and allowing the user to select a converter. There is a hotkey for triggering that external trigger also that takes the current selection and puts it into the clipboard. Packal: http://www.packal.org/workflow/haskell-text-converter My Github: https://github.com/raguay/MyAlfred My Website: http://www.customct.com/ Version: 1.2 - July 31, 2015 Edited July 31, 2015 by raguay.customct
raguay.customct Posted June 23, 2015 Author Posted June 23, 2015 Just made a new version with a lot of code cleanup and moved to the latest version of the Alfred Haskell Library.
raguay.customct Posted July 31, 2015 Author Posted July 31, 2015 Hi, I just noticed a problem with ampersands in the input string killing proper xml processing of the script filter. It now escapes all ampersands before pushing the xml to Alfred. If anyone sees anything else like this, just let me know. I use this all the time, but rarely use an ampersand in a title.
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