1
+ [ ![ Code style: black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
1
2
# General Converter (Flow.Launcher.GenConvert)
2
3
3
- General weight, distance, area, temperature converter for the [ Flow Launcher] ( https://github.com/Flow-Launcher/Flow.Launcher )
4
+ General weight, volume, distance, area, temperature converter for the [ Flow Launcher] ( https://github.com/Flow-Launcher/Flow.Launcher )
4
5
5
6
### About
6
7
7
8
### Requirements
8
9
9
- Python 3.5 or later installed on your system, with python.exe in your PATH variable and this path updated in the Flow Launcher settings (this is a general requirement to use Python plugins with Flow). As of v1.8, Flow Launcher should take care of the installation of Python for you if it is not on your system.
10
+ Python 3.5 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.
10
11
11
12
### Installing
12
13
@@ -26,8 +27,11 @@ Currently English and Chinese language supported. Edit the .env file to change t
26
27
27
28
| Keyword | Description |
28
29
| ----------------------------------- | -------------------------------------------------- |
29
- | ` gc <amount> <from unit> <to unit> ` | Convert the amount of the from unit to the to unit |
30
+ | ` gc <amount> <from unit> <to unit> ` | Convert the amount of the from unit to the to unit. |
30
31
32
+ Just entering the keyword will give you the full list of units to choose from in Flow.
33
+
34
+ Entering the keyword, amount and from unit will give you a subset list of units the from unit can be converted to
31
35
#### Units
32
36
33
37
The following units and their abbreviations can be used (each table can only convert among its' own units):
@@ -37,12 +41,13 @@ The following units and their abbreviations can be used (each table can only con
37
41
<th>Subject</th>
38
42
<th>Unit</th>
39
43
<th>Abbreviation</th>
44
+ <th rowspan="9" align="center"><img src="assets/Distance.ico" alt="Distance Logo"></th>
40
45
</tr >
41
46
<tr >
42
- <td rowspan="8" align="center">Distance</td>
47
+ <td rowspan="8" align="center"> Distance</td>
43
48
<td>millimetre</td>
44
49
<td>mm</td>
45
- </tr >
50
+ </tr >
46
51
<tr >
47
52
<td>centimetre</td>
48
53
<td>cm</td>
@@ -78,43 +83,76 @@ The following units and their abbreviations can be used (each table can only con
78
83
<th>Subject</th>
79
84
<th>Unit</th>
80
85
<th>Abbreviation</th>
86
+ <th rowspan="189" align="center"><img src="assets/Volume.ico" alt="Volume Logo"></th>
81
87
</tr >
82
88
<tr >
83
- <td rowspan="9 " align="center">Fluids </td>
89
+ <td rowspan="17 " align="center">Volume </td>
84
90
<td>millilitre</td>
85
91
<td>ml</td>
86
- </tr >
92
+ </tr >
93
+ <tr >
94
+ <td>gram</td>
95
+ <td>gm</td>
96
+ </tr >
87
97
<tr >
88
98
<td>litre</td>
89
99
<td>l</td>
90
100
</tr >
91
101
<tr >
92
- <td>pint</td>
102
+ <td>pint US </td>
93
103
<td>pt</td>
94
104
</tr >
95
105
<tr >
96
- <td>quart</td>
106
+ <td>pint Imperial</td>
107
+ <td>ptimp</td>
108
+ </tr >
109
+ <tr >
110
+ <td>quart US</td>
97
111
<td>qt</td>
98
112
</tr >
99
113
<tr >
100
- <td>cup</td>
114
+ <td>quart Imperial</td>
115
+ <td>qtimp</td>
116
+ </tr >
117
+ <tr >
118
+ <td>cup US</td>
101
119
<td>cup</td>
102
120
</tr >
103
121
<tr >
104
- <td>teaspoon</td>
122
+ <td>cup Imperial</td>
123
+ <td>cupimp</td>
124
+ </tr >
125
+ <tr >
126
+ <td>teaspoon US</td>
105
127
<td>tsp</td>
106
128
</tr >
107
129
<tr >
108
- <td>tablespoon</td>
130
+ <td>teaspoon Imperial</td>
131
+ <td>tspimp</td>
132
+ </tr >
133
+ <tr >
134
+ <td>tablespoon US</td>
109
135
<td>tbsp</td>
110
136
</tr >
111
137
<tr >
112
- <td>gallon</td>
138
+ <td>tablespoon Imperial</td>
139
+ <td>tbspimp</td>
140
+ </tr >
141
+ <tr >
142
+ <td>gallon US</td>
113
143
<td>gal</td>
114
144
</tr >
115
145
<tr >
116
- <td>gram</td>
117
- <td>gm</td>
146
+ <td>gallon Imperial</td>
147
+ <td>galimp</td>
148
+ </tr >
149
+ <tr >
150
+ <td>fluid ounce US</td>
151
+ <td>floz</td>
152
+ </tr >
153
+ <tr >
154
+ <td>fluid ounce Imperial</td>
155
+ <td>flozimp</td>
118
156
</tr >
119
157
</table >
120
158
@@ -123,6 +161,7 @@ The following units and their abbreviations can be used (each table can only con
123
161
<th>Subject</th>
124
162
<th>Unit</th>
125
163
<th>Abbreviation</th>
164
+ <th rowspan="10" align="center"><img src="assets/Area.ico" alt="Area Logo"></th>
126
165
</tr >
127
166
<tr >
128
167
<td rowspan="9" align="center">Area</td>
@@ -168,6 +207,7 @@ The following units and their abbreviations can be used (each table can only con
168
207
<th>Subject</th>
169
208
<th>Unit</th>
170
209
<th>Abbreviation</th>
210
+ <th rowspan="7" align="center"><img src="assets/Weight.ico" alt="Weight Logo"></th>
171
211
</tr >
172
212
<tr >
173
213
<td rowspan="6" align="center">Weight</td>
@@ -201,16 +241,21 @@ The following units and their abbreviations can be used (each table can only con
201
241
<th>Subject</th>
202
242
<th>Unit</th>
203
243
<th>Abbreviation</th>
244
+ <th rowspan="4" align="center"><img src="assets/Temperature.ico" alt="Temperature Logo"></th>
204
245
</tr >
205
246
<tr >
206
- <td rowspan = "2 " align="center">Temperature</td>
247
+ <td rowspan = "3 " align="center">Temperature</td>
207
248
<td>celsius</td>
208
249
<td>c</td>
209
250
</tr >
210
251
<tr >
211
252
<td>Farenheit</td>
212
253
<td>f</td>
213
254
</tr >
255
+ <tr >
256
+ <td>Kelvin</td>
257
+ <td>k</td>
258
+ </tr >
214
259
</table >
215
260
216
261
### Problems, errors and feature requests
0 commit comments