Skip to content

Commit f5b5a81

Browse files
authored
Merge pull request #6 from deefrawley/deefrawley_fullhints
Improve user experience
2 parents 797426d + 76e0df4 commit f5b5a81

File tree

16 files changed

+1105
-168
lines changed

16 files changed

+1105
-168
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
### Project Specific ###
55
scratch.py
6+
app.xcf
67

78
### Python ###
89
# Byte-compiled / optimized / DLL files

LICENSE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+
23+
Graduated Cylinder icon by AS Design from the Noun Project
24+
area icon by matteo manenti from the Noun Project
25+
distance icon by Anthony Ledoux from the Noun Project
26+
Weight icon by Adrien Coquet from the Noun Project
27+
Temperature icon by Alexander Skowalsky from the Noun Project

README.md

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
12
# General Converter (Flow.Launcher.GenConvert)
23

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)
45

56
### About
67

78
### Requirements
89

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.
1011

1112
### Installing
1213

@@ -26,8 +27,11 @@ Currently English and Chinese language supported. Edit the .env file to change t
2627

2728
| Keyword | Description |
2829
| ----------------------------------- | -------------------------------------------------- |
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. |
3031

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
3135
#### Units
3236

3337
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
3741
<th>Subject</th>
3842
<th>Unit</th>
3943
<th>Abbreviation</th>
44+
<th rowspan="9" align="center"><img src="assets/Distance.ico" alt="Distance Logo"></th>
4045
</tr>
4146
<tr>
42-
<td rowspan="8" align="center">Distance</td>
47+
<td rowspan="8" align="center"> Distance</td>
4348
<td>millimetre</td>
4449
<td>mm</td>
45-
</tr>
50+
</tr>
4651
<tr>
4752
<td>centimetre</td>
4853
<td>cm</td>
@@ -78,43 +83,76 @@ The following units and their abbreviations can be used (each table can only con
7883
<th>Subject</th>
7984
<th>Unit</th>
8085
<th>Abbreviation</th>
86+
<th rowspan="189" align="center"><img src="assets/Volume.ico" alt="Volume Logo"></th>
8187
</tr>
8288
<tr>
83-
<td rowspan="9" align="center">Fluids</td>
89+
<td rowspan="17" align="center">Volume</td>
8490
<td>millilitre</td>
8591
<td>ml</td>
86-
</tr>
92+
</tr>
93+
<tr>
94+
<td>gram</td>
95+
<td>gm</td>
96+
</tr>
8797
<tr>
8898
<td>litre</td>
8999
<td>l</td>
90100
</tr>
91101
<tr>
92-
<td>pint</td>
102+
<td>pint US</td>
93103
<td>pt</td>
94104
</tr>
95105
<tr>
96-
<td>quart</td>
106+
<td>pint Imperial</td>
107+
<td>ptimp</td>
108+
</tr>
109+
<tr>
110+
<td>quart US</td>
97111
<td>qt</td>
98112
</tr>
99113
<tr>
100-
<td>cup</td>
114+
<td>quart Imperial</td>
115+
<td>qtimp</td>
116+
</tr>
117+
<tr>
118+
<td>cup US</td>
101119
<td>cup</td>
102120
</tr>
103121
<tr>
104-
<td>teaspoon</td>
122+
<td>cup Imperial</td>
123+
<td>cupimp</td>
124+
</tr>
125+
<tr>
126+
<td>teaspoon US</td>
105127
<td>tsp</td>
106128
</tr>
107129
<tr>
108-
<td>tablespoon</td>
130+
<td>teaspoon Imperial</td>
131+
<td>tspimp</td>
132+
</tr>
133+
<tr>
134+
<td>tablespoon US</td>
109135
<td>tbsp</td>
110136
</tr>
111137
<tr>
112-
<td>gallon</td>
138+
<td>tablespoon Imperial</td>
139+
<td>tbspimp</td>
140+
</tr>
141+
<tr>
142+
<td>gallon US</td>
113143
<td>gal</td>
114144
</tr>
115145
<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>
118156
</tr>
119157
</table>
120158

@@ -123,6 +161,7 @@ The following units and their abbreviations can be used (each table can only con
123161
<th>Subject</th>
124162
<th>Unit</th>
125163
<th>Abbreviation</th>
164+
<th rowspan="10" align="center"><img src="assets/Area.ico" alt="Area Logo"></th>
126165
</tr>
127166
<tr>
128167
<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
168207
<th>Subject</th>
169208
<th>Unit</th>
170209
<th>Abbreviation</th>
210+
<th rowspan="7" align="center"><img src="assets/Weight.ico" alt="Weight Logo"></th>
171211
</tr>
172212
<tr>
173213
<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
201241
<th>Subject</th>
202242
<th>Unit</th>
203243
<th>Abbreviation</th>
244+
<th rowspan="4" align="center"><img src="assets/Temperature.ico" alt="Temperature Logo"></th>
204245
</tr>
205246
<tr>
206-
<td rowspan = "2" align="center">Temperature</td>
247+
<td rowspan = "3" align="center">Temperature</td>
207248
<td>celsius</td>
208249
<td>c</td>
209250
</tr>
210251
<tr>
211252
<td>Farenheit</td>
212253
<td>f</td>
213254
</tr>
255+
<tr>
256+
<td>Kelvin</td>
257+
<td>k</td>
258+
</tr>
214259
</table>
215260

216261
### Problems, errors and feature requests

assets/Area.ico

66.1 KB
Binary file not shown.

assets/Distance.ico

46.5 KB
Binary file not shown.

assets/Temperature.ico

43.1 KB
Binary file not shown.

assets/Volume.ico

38.6 KB
Binary file not shown.

assets/Weight.ico

57.6 KB
Binary file not shown.

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "General Converter",
55
"Description": "General weights and measures converter",
66
"Author": "deefrawley",
7-
"Version": "1.0.2",
7+
"Version": "1.1.0",
88
"Language": "python",
99
"Website": "https://github.com/deefrawley/Flow.Launcher.Plugin.GenConvert",
1010
"IcoPath": "assets/favicon.ico",
3.56 KB
Binary file not shown.

0 commit comments

Comments
 (0)