Skip to content

Commit c882b0e

Browse files
committed
Update changelog, readme, and metadata for v2.1.0
1 parent 63687ea commit c882b0e

File tree

3 files changed

+70
-26
lines changed

3 files changed

+70
-26
lines changed

CHANGELOG.md

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,53 @@
1+
# 2.1.0 (2023-03-03)
2+
3+
Bugfixes and improvements:
4+
5+
* Fix broken proposal retrieval by adapting to data format and URL changes on swift.org.
6+
7+
* The proposal title is now displayed more prominently in Alfred (together with the proposal ID).
8+
9+
* New actions in Alfred:
10+
* Hold down Command to copy the proposal title to the clipboard.
11+
* Hold down Shift+Command to copy a Markdown link to the proposal to the clipboard.
12+
* (To copy the URL, hit Tab on a proposal and select Copy as Plain Text from the menu. This is not a new feature.)
13+
14+
* The script now forwards four variables to Alfred that can be used in subsequent workflow actions:
15+
* `proposal_id` (e.g. "SE-0304")
16+
* `proposal_title` ("Structured concurrency")
17+
* `proposal_status` ("Implemented")
18+
* `proposal_url` ("https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md")
19+
20+
If you want to customize the workflow for your needs, you can use these variables in your actions. Refer to the "Copy Markdown link" action for an example.
21+
22+
* Display more detailed error messages in Alfred on network or parsing failures.
23+
124
# 2.0.1 (2017-02-20)
225

326
This is a bugfix release with the following changes:
427

5-
* The query string is now case insensitive, as it should be.
6-
* You can now search for proposals using the internal name of a
7-
particular proposal status (such as `.rejected` or
8-
`.acceptedWithRevisions`).
9-
* You now have to insert a space between <kbd>se</kbd> and your
10-
query string. Previously, the workflow also triggered for queries
11-
such as <kbd>setup</kbd>, which was not a good idea.
12-
* The timing of how the script is run when you modify the query
13-
string has been tweaked.
28+
* The query string is now case insensitive, as it should be.
29+
* You can now search for proposals using the internal name of a
30+
particular proposal status (such as `.rejected` or
31+
`.acceptedWithRevisions`).
32+
* You now have to insert a space between <kbd>se</kbd> and your
33+
query string. Previously, the workflow also triggered for queries
34+
such as <kbd>setup</kbd>, which was not a good idea.
35+
* The timing of how the script is run when you modify the query
36+
string has been tweaked.
1437

1538
# 2.0.0 (2017-02-20)
1639

1740
This third release of `alfred-swift-evolution` contains the following improvements:
1841

19-
* The script implementing the workflow is now written in Swift.
20-
* Proposal information is now downloaded from the JSON API behind
21-
the official [Swift evolution review status page][status].
22-
* Alfred now displays a list of matching proposals, not just a
23-
generic item for running the actual lookup.
24-
* Matching proposals are now listed with their title and current
25-
status.
26-
* You can filter proposals by keyword or status, not just by
27-
proposal number.
42+
* The script implementing the workflow is now written in Swift.
43+
* Proposal information is now downloaded from the JSON API behind
44+
the official [Swift evolution review status page][status].
45+
* Alfred now displays a list of matching proposals, not just a
46+
generic item for running the actual lookup.
47+
* Matching proposals are now listed with their title and current
48+
status.
49+
* You can filter proposals by keyword or status, not just by
50+
proposal number.
2851

2952
[status]: https://apple.github.io/swift-evolution/
3053

Info.plist

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,18 @@ Requirements:
170170
171171
The script filter makes the following variables available to subsequent actions:
172172
173-
- {var:proposal_id} ("SE-0304"
174-
- {var:proposal_title} ("Structured concurrency")
175-
- {var:proposal_status) ("Implemented")
176-
- {var:proposal_url) ("https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md")</string>
173+
- proposal_id (e.g. "SE-0304")
174+
- proposal_title ("Structured concurrency")
175+
- proposal_status ("Implemented")
176+
- proposal_url ("https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md")
177+
178+
You can use e.g. `{var:proposal_id}` in your own actions to customize the workflow. Refer to the "Copy Markdown link" action for an example.</string>
177179
<key>uidata</key>
178180
<dict>
179181
<key>19A1DB67-4FFB-406B-AB22-D350EE719F7E</key>
180182
<dict>
183+
<key>note</key>
184+
<string>Script that downloads the proposal data from swift.org and filters them according to the search term.</string>
181185
<key>xpos</key>
182186
<real>165</real>
183187
<key>ypos</key>
@@ -193,7 +197,7 @@ The script filter makes the following variables available to subsequent actions:
193197
<key>7FF77CFD-8E46-40C0-820B-5F1D4AF4BAFA</key>
194198
<dict>
195199
<key>note</key>
196-
<string>Copy Markdown link to proposal</string>
200+
<string>Copy Markdown link</string>
197201
<key>xpos</key>
198202
<real>430</real>
199203
<key>ypos</key>

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Written in Swift, of course.
77

88
## Requirements
99

10-
You must have Swift 3 installed (either by a version of Xcode or
10+
You must have Swift 5 installed (either by a version of Xcode or
1111
Command Line Tools).
1212

1313
## Download
1414

15-
Download version 2.0.1 of [alfred-swift-evolution.alfredworkflow][download].
15+
Download version 2.1.0 of [alfred-swift-evolution.alfredworkflow][download].
1616

17-
[download]: https://github.com/lorentey/alfred-swift-evolution/releases/download/v2.0.1/alfred-swift-evolution.alfredworkflow
17+
[download]: https://github.com/attaswift/alfred-swift-evolution/releases/download/v2.1.0/alfred-swift-evolution.alfredworkflow
1818

1919
## Usage
2020

@@ -33,3 +33,20 @@ Or by keyword:
3333

3434
![Filter by keyword](screenshots/filter-keyword.png)
3535

36+
Available actions:
37+
38+
* Press Return to open the proposal in the browser.
39+
* Hold down Command to copy the proposal title to the clipboard.
40+
* Hold down Shift+Command to copy a Markdown link to the proposal to the clipboard.
41+
* (To copy the URL, hit Tab on a proposal and select Copy as Plain Text from the menu.)
42+
43+
### Workflow variables
44+
45+
The script forwards four variables to Alfred that can be used in subsequent workflow actions:
46+
47+
* `proposal_id` (e.g. "SE-0304")
48+
* `proposal_title` ("Structured concurrency")
49+
* `proposal_status` ("Implemented")
50+
* `proposal_url` ("https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md")
51+
52+
If you want to customize the workflow for your needs, you can use these variables in your actions. Refer to the "Copy Markdown link" action for an example.

0 commit comments

Comments
 (0)