wolph / alfred-converter

Alfred unit converter is a smart calculator for Alfred with support for unit conversions to make it a bit comparable to the Google Calculator and Wolfram Alpha.
93 stars 15 forks source link

Farad derivatives support? #30

Closed QrchackOfficial closed 3 years ago

QrchackOfficial commented 3 years ago

I see there's already support for base unit, F (farad). Can nF, pF, uF be added, so I don't have to use meters (nm/pm) and translate in my head? It's especially tricky for um, which is shown as microns - having uF would be much appreciated.

wolph commented 3 years ago

Both microfarad and picofarad are already supported, but they are hidden by default because the difference in conversions is too large. The current version has a default limit of 3 orders of magnitude which hides these conversions since they're all 6 orders of magnitude apart.

I'll see if I can only apply the order of magnitude limitation when we go beyond 10 results or so.

If you change the MAX_MAGNITUDE variable in alfred to 6 or more, you will see the conversions

QrchackOfficial commented 3 years ago

This is with MAX_MAGNITUDE at 10000000:

image

nF would be useful here

Also seems like it's not picked up at all:

image

uF/pF seem to work fine after changing MAX_MAGNITUDE

wolph commented 3 years ago

We now have more units available: image

QrchackOfficial commented 3 years ago

Looks great, can't wait to try it out!

QrchackOfficial commented 3 years ago

image Something still is up, it shows 1 pico = 1 nano, and 1 "picro" (typo?) being duplicate, but correct value. Appreciate the prompt update though, thank you so much for all the effort - just reporting what I see.

wolph commented 3 years ago

indeed, typos and a copy paste mistake... I wasn't properly awake yet ;)

wolph commented 3 years ago

The picrofarad is broken in the original file I based most of the units on: http://w3.energistics.org/uom/poscUnits22.xml

The mistake with nano is indeed a copy/paste error from me.

Both are fixed now :)

QrchackOfficial commented 3 years ago

Looks like it! Thanks!