Skip to content

Commit

Permalink
Swap CMD+C and RETURN behaviour to match Alfred's
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Jan 26, 2019
1 parent 69e04a1 commit cc8c3b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Usage
-----

- `conv <quantity> <from unit> [<to unit>]` — Perform a conversion
- `` — Copy the result to the pasteboard
- `⌘C` — Copy result to pasteboard without thousands separator
- `` — Copy result without thousands separator to pasteboard
- `⌘C` — Copy result with thousands separator to pasteboard
- `⌘↩` — Add/remove destination unit as default for this dimensionality
- `⌘L` — Show result in Alfred's Large Type window
- `convinfo` — View help file and information about the workflow, or edit custom units and active currencies
Expand Down
8 changes: 4 additions & 4 deletions src/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,11 @@ def convert(query):
DYNAMIC_DECIMALS)
wf.setvar('query', query)
for conv in results:
value = arg = f.formatted(conv.to_number, conv.to_unit)
copytext = f.formatted_no_thousands(conv.to_number, conv.to_unit)
value = copytext = f.formatted(conv.to_number, conv.to_unit)
arg = f.formatted_no_thousands(conv.to_number, conv.to_unit)
if not COPY_UNIT:
arg = f.formatted(conv.to_number)
copytext = f.formatted_no_thousands(conv.to_number)
copytext = f.formatted(conv.to_number)
arg = f.formatted_no_thousands(conv.to_number)

it = wf.add_item(value,
valid=True,
Expand Down
2 changes: 1 addition & 1 deletion src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ UPDATE_INTERVAL is the number of minutes between exchange rate updates.</string>
<string>APP_KEY</string>
</array>
<key>version</key>
<string>3.5.2</string>
<string>3.5.3</string>
<key>webaddress</key>
<string></string>
</dict>
Expand Down

0 comments on commit cc8c3b6

Please sign in to comment.