Skip to content

Commit cc8c3b6

Browse files
committed
Swap CMD+C and RETURN behaviour to match Alfred's
1 parent 69e04a1 commit cc8c3b6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
Binary file not shown.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Usage
4141
-----
4242

4343
- `conv <quantity> <from unit> [<to unit>]` — Perform a conversion
44-
- `` — Copy the result to the pasteboard
45-
- `⌘C` — Copy result to pasteboard without thousands separator
44+
- `` — Copy result without thousands separator to pasteboard
45+
- `⌘C` — Copy result with thousands separator to pasteboard
4646
- `⌘↩` — Add/remove destination unit as default for this dimensionality
4747
- `⌘L` — Show result in Alfred's Large Type window
4848
- `convinfo` — View help file and information about the workflow, or edit custom units and active currencies

src/convert.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,11 @@ def convert(query):
590590
DYNAMIC_DECIMALS)
591591
wf.setvar('query', query)
592592
for conv in results:
593-
value = arg = f.formatted(conv.to_number, conv.to_unit)
594-
copytext = f.formatted_no_thousands(conv.to_number, conv.to_unit)
593+
value = copytext = f.formatted(conv.to_number, conv.to_unit)
594+
arg = f.formatted_no_thousands(conv.to_number, conv.to_unit)
595595
if not COPY_UNIT:
596-
arg = f.formatted(conv.to_number)
597-
copytext = f.formatted_no_thousands(conv.to_number)
596+
copytext = f.formatted(conv.to_number)
597+
arg = f.formatted_no_thousands(conv.to_number)
598598

599599
it = wf.add_item(value,
600600
valid=True,

src/info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ UPDATE_INTERVAL is the number of minutes between exchange rate updates.</string>
645645
<string>APP_KEY</string>
646646
</array>
647647
<key>version</key>
648-
<string>3.5.2</string>
648+
<string>3.5.3</string>
649649
<key>webaddress</key>
650650
<string></string>
651651
</dict>

0 commit comments

Comments
 (0)