Convert between different units offline in Alfred 2.
Alfred-Convert uses a built-in library for lightning fast conversions.
You can also add your own custom units.
Note: Currency conversions do require occasional Internet connectivity to update exchange rates. Alfred-Convert will otherwise work just fine without an Internet connection.
Download from GitHub or Packal.org.
The syntax is simple: the quantity, the unit you want to convert from then the unit you want to convert to. For example:
conv 128 mph kph
conv 72in cm
conv 100psi bar
conv 20.5 m/s mph
conv 100 eur gbp
It doesn't matter if there is a space between the quantity and the units or not. Alfred-Convert will tell you if it doesn't understand your query or know the units.
Actioning an item (selecting it and hitting ↩
) will copy it to the clipboard. Using ⌘+L
will display the result in Alfred's large text window, ⌘+C
will copy the selected result to the clipboard.
Use convinfo
to view the built-in help file, view/search the list of
supported currencies, change the number of decimal places shown in conversions, or edit your custom units.
See Adding custom units.
Currently, Alfred-Convert only supports the units understood by the underlying Pint library plus currencies and a handful of additional units.
You can your own custom units to the workflow. If you think they'd be useful to everyone, please create a corresponding GitHub issue to request addition as a default unit or submit a pull request.
To convert, use the appropriate abbreviation for the relevant currencies, e.g. conv 100 eur gbp
.
You can also view (and search) the list from within Alfred by using the keyword convinfo
and choosing View Supported Currencies
.
You can add your own custom units using the format defined by Pint. Add your definitions to the unit_definitions.txt
file in the workflow's data directory.
To edit this file, enter convinfo
in Alfred and select Edit Custom Units
. The unit_definitions.txt
file will open in your default text editor.
Please see the Pint documentation for the required format. See Pint's default unit definitions for examples.
See CHANGELOG for more information.
Release | Date |
---|---|
2.4 | 2015-11-28 |
2.3 | 2015-11-26 |
2.2 | 2015-07-16 |
2.1 | Never released |
2.0 | 2014-12-26 |
1.2 | 2014-08-19 |
1.1 | 2014-08-09 |
- The Python Pint library does all the heavy lifting. See the Pint GitHub repo for Pint licensing or
LICENSE.txt
andAUTHORS.txt
in thevendor/pint
subdirectory. - The workflow icons are from Font Awesome
- Exchange rates are downloaded from the Yahoo! Finance.
- The Alfred-Workflow library is used heavily.
All other code/media are released under the MIT Licence.