jaster Posted May 22, 2014 Share Posted May 22, 2014 I just pushed an update that supports this. The code that processes the input is in convert.py. I do some very naive string pre-processing to allow unit names to contain spaces, and it was also combining the number with its units. Cheers mate. Link to comment
jaster Posted June 15, 2014 Share Posted June 15, 2014 Recently I upgraded to Mavericks and could not get the workflow to recognise the config file values. I had to edit 'alfred_convert.py' to actually change them. Link to comment
jason0x43 Posted June 17, 2014 Author Share Posted June 17, 2014 Recently I upgraded to Mavericks and could not get the workflow to recognise the config file values. I had to edit 'alfred_convert.py' to actually change them. Could you provide a bit more background? Which config file values weren't being recognized? Link to comment
jaster Posted June 17, 2014 Share Posted June 17, 2014 Could you provide a bit more background? Which config file values weren't being recognized? Both 'separator' and 'precision' I'm afraid. There was no error in the debug window. Link to comment
tomszekeres Posted August 6, 2014 Share Posted August 6, 2014 Hi Jason – thanks so much for this workflow – really useful. How would I go about translating this into (original) English? i.e. kilometre instead of kilometer? I don't mind getting my hands dirty, but would be useful to know where to look Link to comment
jason0x43 Posted August 13, 2014 Author Share Posted August 13, 2014 Most of the units are currently coming from the pint library. Pint comes with an extensive set units by default, and has support for loading units from text files. The workflow actually defines a couple of custom units units in a unit_defs.txt file. You should be able to add aliases to units there, although they won't survive an upgrade (so keep a copy outside the workflow). There isn't currently a facility for custom units, although that wouldn't be too hard to add. Link to comment
deanishe Posted August 13, 2014 Share Posted August 13, 2014 If you use pint in a workflow, it's a good idea to remove the call to git in __init__.py. If a user doesn't have git installed, OS X will ask them to install Xcode, which is confusing. Link to comment
bdorn Posted November 3, 2016 Share Posted November 3, 2016 (edited) Doesn't look like it's working for me, either. Once I type beyond the keyword, Alfred shows the fallback searches ("Search Google for '{query}'). I'm using Alfred 3.1.1. Edited November 3, 2016 by bdorn Link to comment
deanishe Posted November 3, 2016 Share Posted November 3, 2016 This workflow works. Doesn't support any arithmetic, though. Just straight conversion. Link to comment
frankvs Posted November 16, 2016 Share Posted November 16, 2016 I'd suggest http://units.dnsu.ch workflow Units to convert units. very intuitive and better design. drwatson 1 Link to comment
drwatson Posted November 16, 2016 Share Posted November 16, 2016 41 minutes ago, frankvs said: I'd suggest http://units.dnsu.ch workflow Units to convert units. very intuitive and better design. this one is sweet and exactly what I needed. The currency was a huge bonus. Link to comment
jason0x43 Posted November 16, 2016 Author Share Posted November 16, 2016 I had started work on an update for this workflow, but gave it up when Apple integrated unit conversion into Spotlight, so this one is currently unmaintained. Link to comment
drwatson Posted November 16, 2016 Share Posted November 16, 2016 1 minute ago, jason0x43 said: I had started work on an update for this workflow, but gave it up when Apple integrated unit conversion into Spotlight, so this one is currently unmaintained. Can you update the thread title to reflect that? I imagine that's useful for others who search and find this Link to comment
jason0x43 Posted November 16, 2016 Author Share Posted November 16, 2016 Will do. drwatson 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