alfredo Posted January 14, 2013 Share Posted January 14, 2013 Attached is a simple Wikipedia auto complete workflow. -Download: http://d.pr/f/no3O For those like myself who prefer scripting in Python, the following class makes generating feedback easy -View/Download: http://d.pr/f/GMO8 Example Usage: from alfred import Feedback fb = Feedback() fb.add_item("Hello World", subtitle="Simple Greeting") fb.add_item("Foo", subtitle="Bar", icon="foobar.icon", arg="foobar") print fb Enjoy mlgill, drking, franzheidl and 1 other 4 Link to comment
franzheidl Posted January 14, 2013 Share Posted January 14, 2013 Cool, Never tried Python for Alfred extensions/workflows, looks tempting though. Link to comment
simonbs Posted January 14, 2013 Share Posted January 14, 2013 Very nice, thanks! I added another Open URL action and set the it to open articles in my native language, Danish. Then, I added this as another action for the script filter and assigned a modifier key to it so I can choose to open the article in English or Danish. Just though I would share this "tip". Link to comment
palobo Posted January 14, 2013 Share Posted January 14, 2013 Thanks mate. For somebody starting to dabble in python, these workflows are awesome. Great learning resource. Cheers, PL Link to comment
hollowm4n Posted January 14, 2013 Share Posted January 14, 2013 Very nice, thanks! I added another Open URL action and set the it to open articles in my native language, Danish. Then, I added this as another action for the script filter and assigned a modifier key to it so I can choose to open the article in English or Danish. Just though I would share this "tip". The problem with this approach is that if the article in your language has a different name it will not work. I added a second workflow and modified the python to search the articles in dutch. Both workflows use the same keyword. This will give you results in both languages. The only issue with this approach is that I'm getting 2 dutch results on top, then several english results and afterwards the dutch results continue. Link to comment
simonbs Posted January 14, 2013 Share Posted January 14, 2013 The problem with this approach is that if the article in your language has a different name it will not work. I added a second workflow and modified the python to search the articles in dutch. Both workflows use the same keyword. This will give you results in both languages. The only issue with this approach is that I'm getting 2 dutch results on top, then several english results and afterwards the dutch results continue. That's right. If the articles haven't got the same name, my approach will not work. I have modified your Feedback class a bit to also set the 'valid' and the 'autocomplete' options. I hope that's all right. I have uploaded it here. Link to comment
viticci Posted January 14, 2013 Share Posted January 14, 2013 Thanks, working really well here. Great idea. mlgill 1 Link to comment
segphault Posted January 14, 2013 Share Posted January 14, 2013 Thanks! Great workflow, but I especially appreciate your Python class for generating the XML. That's very convenient. :-) Link to comment
simonbs Posted January 16, 2013 Share Posted January 16, 2013 I have updated Peter Okmas Feedback class to set "valid" and "autocomplete" on the item. Read more about this here. You can download the updated class here, if you want it. Jono 1 Link to comment
alfredo Posted January 26, 2013 Author Share Posted January 26, 2013 Thanks simonbs for keeping my Feedback class up to date. I've uploaded the file (with your changes), and my workflows to github. I should be adding more workflows and utilities to that repository as soon as I have some free time. https://github.com/peteokma/alfred-workflows Link to comment
ChrisHumphreys Posted January 29, 2013 Share Posted January 29, 2013 Hey is there a working alfred workflow file This link http://d.pr/f/no3O is dead. Link to comment
morphorod Posted February 15, 2013 Share Posted February 15, 2013 Where is it? All the links above are dead. Please bring it back. Link to comment
freddybushboy Posted March 14, 2013 Share Posted March 14, 2013 Yep, thanks - this looks brilliant but the above links aren't working Link to comment
Teodin Posted March 16, 2013 Share Posted March 16, 2013 Uhm, I would kinda like to use this, but I couldn't extract it from github so it would work. Could you please upload a proper .alfredworkflow? Link to comment
ChrisHumphreys Posted March 16, 2013 Share Posted March 16, 2013 Would love to use this workflow but the download link is dead Link to comment
mixterdee Posted March 16, 2013 Share Posted March 16, 2013 Like others I want this but all above links are dead Link to comment
Teodin Posted March 17, 2013 Share Posted March 17, 2013 Just look here: http://www.alfredforum.com/topic/1005-wikipedia-workflow-alternate/ Subject22 1 Link to comment
bargepole Posted May 29, 2013 Share Posted May 29, 2013 Please post a link to this workflow. I am not interested in the alternative, I don't want to type "w en" as the prefix rather than just "w". Thanks in advance. Link to comment
Subject22 Posted June 8, 2013 Share Posted June 8, 2013 Please post a link to this workflow. I am not interested in the alternative, I don't want to type "w en" as the prefix rather than just "w". Thanks in advance. A bit of a late reply, but it really is excruciatingly easy to change the behaviour of that alternative workflow so that you don't need to type the Wikipedia language code. There are instructions in the first post of the thread and in the script filter itself. Just add your preferred language code to the last line of the filter. For English the line would look like this: python w.py en {query} Link to comment
PjotV Posted October 24, 2013 Share Posted October 24, 2013 Links don't work anymore. 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