Skip to content

Commit

Permalink
Version 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannicoppola committed Nov 28, 2022
1 parent 77e825a commit 7285a7d
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 40 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2020 Clarence Castillo
Copyright (c) 2022 Giovanni Coppola

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Power Thesaurus Search for Alfred #

## March 2022 update

- migration to Python 3
- caching eliminated - performance (for cached items) went from ~0.06-0.12 to ~0.4-0.5 secs per query
- now opens both antonyms (CTRL) and synonyms (CMD) in browser
Ported to ALfred 5 and Python 3 from the original version by [@clarencecastillo](https://github.com/clarencecastillo)

----
<a href="https://github.com/giovannicoppola/alfred-powerthesaurus/releases/latest/">
Expand All @@ -21,7 +17,7 @@ Search for synonyms and antonyms on [Power Thesaurus](https://www.powerthesaurus

## Installation ##

Get Power Thesaurus for Alfred from [GitHub](https://github.com/clarencecastillo/alfred-powerthesaurus/releases) or [Packal](http://www.packal.org/workflow/powerthesaurus-search).
Get Power Thesaurus for Alfred from [GitHub](https://github.com/giovannicoppola/alfred-powerthesaurus/releases).

## Usage ##

Expand All @@ -32,16 +28,14 @@ Primary commands:
For both primary commands:
- `` or ` ⌘+C` — Copy highlighted entry to the clipboard
- `⌘+L` — Show full query in Alfred's Large Text window
- `⌘+↩` — Open highlighted entry in browser
- CMD+enter (⌘↩️) opens synonyms in browser
- CTRL+enter (^↩️) opens antonyms in browser
- `SHIFT` — Preview highlighted entry's page using quicklook

## Results ##

Resulting synonyms or antonyms will be sequentially listed according to user rating.

## Development ##

Use the `init.sh` script to install the required dependencies inside the `src` folder. When you're ready to test or export, copy the entire `src` folder to the existing workflow directory.

## Troubleshooting ##

Expand All @@ -54,17 +48,18 @@ For other errors, please open an issue describing how you got the error and toge

## Related Links ##

[GitHub Repository](https://github.com/clarencecastillo/alfred-powerthesaurus)
[Alfred Forums](https://www.alfredforum.com/topic/10576-powerthesaurus-search/)
[Packal](http://www.packal.org/workflow/powerthesaurus-search)

## Releases ##
### November 2022 update (Version 3.1)
- migration to Alfred 5

There's probably a smarter way to do this, but when preparing a new release, don't forget to:
### March 2022 update (Version 3.0)

- migration to Python 3
- caching eliminated - performance (for cached items) went from ~0.06-0.12 to ~0.4-0.5 secs per query
- now opens both antonyms (CTRL) and synonyms (CMD) in browser

1. Bump `version` file
2. Bump the exported workflow following the format `PowerThesaurus-x.x.x.alfredworkflow`
3. Bump `alfredworkflow.version` field in `metadata.json` or just re-export the entire `metadata.json` from `Alfred > Workflows`

## Licensing ##

Expand Down
Binary file not shown.
File renamed without changes.
113 changes: 89 additions & 24 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>pows</string>
<string>{var:synkeyword}</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand Down Expand Up @@ -236,7 +236,7 @@ python3 powerthesaurus.py "synonym $1"</string>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>powa</string>
<string>{var:antkeyword}</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand Down Expand Up @@ -298,8 +298,12 @@ python3 powerthesaurus.py "antonym $1"</string>
<key>readme</key>
<string>Search Powerthesaurus synonyms and antonyms from Alfred
Original by Clarence Castillo
https://github.com/clarencecastillo/alfred-powerthesaurus
Updated to Python 3
Ported to Python3 and Alfred 5
https://github.com/giovannicoppola/alfred-powerthesaurus
enter (↩️) copies word to clipboard
CMD+enter (⌘↩️) opens synonyms in browser
Expand All @@ -309,66 +313,127 @@ CTRL+enter (^↩️) opens antonyms in browser</string>
<key>3BDFA2EA-F8AA-4E1D-BACD-9578AA20FCF0</key>
<dict>
<key>xpos</key>
<integer>110</integer>
<real>110</real>
<key>ypos</key>
<integer>440</integer>
<real>440</real>
</dict>
<key>76D80E62-E346-4FE5-87F5-0F588660706B</key>
<dict>
<key>note</key>
<string>Open Antonyms in browser</string>
<key>xpos</key>
<integer>650</integer>
<real>650</real>
<key>ypos</key>
<integer>460</integer>
<real>460</real>
</dict>
<key>819E593B-43C3-4EBF-9000-3D3C0F5AB6D2</key>
<dict>
<key>xpos</key>
<integer>110</integer>
<real>110</real>
<key>ypos</key>
<integer>115</integer>
<real>115</real>
</dict>
<key>AF3183AB-C171-409C-9900-649D4136A7D1</key>
<dict>
<key>xpos</key>
<integer>440</integer>
<real>440</real>
<key>ypos</key>
<integer>440</integer>
<real>440</real>
</dict>
<key>B08999FE-6061-49C9-997E-42C21568C633</key>
<dict>
<key>note</key>
<string>Open Synonims in browser</string>
<key>xpos</key>
<integer>650</integer>
<real>650</real>
<key>ypos</key>
<integer>40</integer>
<real>40</real>
</dict>
<key>C8E90027-C7BF-4358-A235-F56E58D80D55</key>
<dict>
<key>xpos</key>
<integer>440</integer>
<real>440</real>
<key>ypos</key>
<integer>160</integer>
<real>160</real>
</dict>
<key>EA0FCBB9-3119-4821-A1D9-58B6780D5C37</key>
<dict>
<key>xpos</key>
<integer>650</integer>
<real>650</real>
<key>ypos</key>
<integer>260</integer>
<real>260</real>
</dict>
</dict>
<key>variables</key>
<dict>
<key>ALFRED_PT_SSL_VERIFICATION</key>
<string>True</string>
</dict>
<key>userconfigurationconfig</key>
<array>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>pows</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Keyword for Synonyms</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>synkeyword</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>powa</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Keyword for Antonyms</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>antkeyword</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>True</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<false/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string>If you're having SSL issues, try temporarily disabling it by setting this workflow environment variable to `False`. This will bypass SSL verification as a workaround while waiting for the SSL certificate to be rectified.</string>
<key>label</key>
<string>SSL verification</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>ALFRED_PT_SSL_VERIFICATION</string>
</dict>
</array>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>3.0</string>
<string>3.1</string>
<key>webaddress</key>
<string>https://github.com/giovannicoppola/alfred-powerthesaurus</string>
</dict>
Expand Down

0 comments on commit 7285a7d

Please sign in to comment.