Skip to content

deefrawley/Flow.Launcher.Plugin.GenConvert

Repository files navigation

Code style: black

General Converter (Flow.Launcher.GenConvert)

General weight, volume, distance, area, temperature, speed and energy converter for the Flow Launcher

About

Requirements

Python 3.9 or later. As of Flow Launcher v1.8, Flow should take care of the installation of Python for you if it is not on your system.

Installing

Package Manager

Use the pm install command from within Flow itself

Manual

Add the Flow.Launcher.Plugin.GenConvert directory to %APPDATA%\Roaming\FlowLauncher\Plugins\ and restart Flow.

Localisation

Currently English and Chinese language supported. Edit the .env file to change the language.

Usage

Keyword Description
gc <amount> <from unit abbreviation> <to unit abbreviation> Convert the amount of the from unit to the to unit.

The from and to unit are case sensitive.

Just entering the keyword will give you the full list of units to choose from in Flow. If you want to remove the keyword for this plugin and have it return results when you simply start entering a number then go to the Plugin settings and turn this helper text off.

Entering the keyword, amount and from unit will give you a subset list of units the from unit can be converted to

Units

The following units and their abbreviations can be used (each table can only convert among its' own units):

Subject Unit Abbreviation Distance Logo
Distance millimetre mm
centimetre cm
metre m
decimetre dm
kilometre km
inch in
foot/feet ft
yard yd
mile mi
Subject Unit Abbreviation Volume Logo
Volume millilitre ml
gram g
litre l
decalitre decal
pint US pt
pint Imperial ptimp
quart US qt
quart Imperial qtimp
cup US cup
cup Imperial cupimp
teaspoon US tsp
teaspoon Imperial tspimp
tablespoon US tbsp
tablespoon Imperial tbspimp
gallon US gal
gallon Imperial galimp
fluid ounce US floz
fluid ounce Imperial flozimp
cubic decimetre dm3
cubic millimetre mm3
cubic centimetre cm3
cubic metre m3
cubic inch in3
cubic feet ft3
bushel UK buuk
bushel US buus
Subject Unit Abbreviation Area Logo
Area square metre sqm
square centremetre sqcm
square kilometre sqkm
square inch sqin
square foot sqft
square mile sqmi
square yard sqyd
hectare h
acre ac
Subject Unit Abbreviation Weight Logo
Weight gram g
kilogram kg
pound lb
ounce oz
stone st
ton ton
Subject Unit Abbreviation Temperature Logo
Temperature celsius c
Farenheit f
Kelvin k
Subject Unit Abbreviation Speed Logo
Speed kilometres per hour km/h
miles per hour mp/h
knots kt
Subject Unit Abbreviation Energy Logo
Energy calories cal
kilocalories kcal
kilojoules kJ
megajoules MJ
gigajoules Gj
kilowatt hours kWh
British thermal units BTU

Problems, errors and feature requests

Open an issue in this repo.