Skip to content

Commit 821a3cd

Browse files
authored
Merge pull request #5 from clnt/2.0.0-dev
Version 2.0.0 Release
2 parents 9ad7004 + 66145b4 commit 821a3cd

File tree

6 files changed

+42
-28
lines changed

6 files changed

+42
-28
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
composer.lock
2-
/vendor
2+
/vendor
3+
.idea

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,28 @@ Adapted from [Alfred VueJS Docs](https://github.com/vmitchell85/alfred-vuejs-doc
88

99
## Installation
1010

11-
1. [Download the latest version](https://github.com/clnt/alfred-tailwindcss-docs/releases/download/v1.1.1/TailwindCSSDocs.alfredworkflow)
11+
1. [Download the latest version](https://github.com/clnt/alfred-tailwindcss-docs/releases/download/v2.0.0/TailwindCSSDocs.alfredworkflow)
1212
2. Install the workflow by double-clicking the `.alfredworkflow` file
1313
3. You can add the workflow to a category, then click "Import" to finish importing. You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.
1414

1515
## Usage
1616

17-
Just type `tw` followed by your search query.
17+
To search the [v2 docs](https://tailwindcss.com/docs), just type `tw` followed by your search query.
1818

1919
```
2020
tw <query>
2121
```
2222

23-
To search the [v0 docs](https://tailwindcss-v0.netlify.app/docs), just type `tw0` followed by your search query.
23+
To search the [v0 docs](https://v0.tailwindcss.com/docs), just type `tw0` followed by your search query.
2424

2525
```
2626
tw0 <query>
2727
```
2828

29+
To search the [v1 docs](https://v1.tailwindcss.com/docs), just type `tw1` followed by your search query.
30+
31+
```
32+
tw1 <query>
33+
```
34+
2935
![Search by Algolia](algolia.png)

info.plist

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<key>disabled</key>
5656
<false/>
5757
<key>name</key>
58-
<string>TailwindCSS Docs</string>
58+
<string>TailwindCSSDocs</string>
5959
<key>objects</key>
6060
<array>
6161
<dict>
@@ -84,6 +84,8 @@
8484
<false/>
8585
<key>alfredfiltersresultsmatchmode</key>
8686
<integer>0</integer>
87+
<key>argumenttreatemptyqueryasnil</key>
88+
<false/>
8789
<key>argumenttrimmode</key>
8890
<integer>0</integer>
8991
<key>argumenttype</key>
@@ -122,7 +124,7 @@
122124
<key>uid</key>
123125
<string>BA0F1293-0A15-462E-966E-7C84BCFBC501</string>
124126
<key>version</key>
125-
<integer>2</integer>
127+
<integer>3</integer>
126128
</dict>
127129
<dict>
128130
<key>config</key>
@@ -150,6 +152,8 @@
150152
<false/>
151153
<key>alfredfiltersresultsmatchmode</key>
152154
<integer>0</integer>
155+
<key>argumenttreatemptyqueryasnil</key>
156+
<false/>
153157
<key>argumenttrimmode</key>
154158
<integer>0</integer>
155159
<key>argumenttype</key>
@@ -188,7 +192,7 @@
188192
<key>uid</key>
189193
<string>89F02255-0DA5-4773-896A-BF05292D2CE8</string>
190194
<key>version</key>
191-
<integer>2</integer>
195+
<integer>3</integer>
192196
</dict>
193197
<dict>
194198
<key>config</key>
@@ -216,14 +220,16 @@
216220
<false/>
217221
<key>alfredfiltersresultsmatchmode</key>
218222
<integer>0</integer>
223+
<key>argumenttreatemptyqueryasnil</key>
224+
<false/>
219225
<key>argumenttrimmode</key>
220226
<integer>0</integer>
221227
<key>argumenttype</key>
222228
<integer>0</integer>
223229
<key>escaping</key>
224230
<integer>127</integer>
225231
<key>keyword</key>
226-
<string>twb</string>
232+
<string>tw1</string>
227233
<key>queuedelaycustom</key>
228234
<integer>3</integer>
229235
<key>queuedelayimmediatelyinitially</key>
@@ -235,15 +241,15 @@
235241
<key>runningsubtext</key>
236242
<string>Searching docs for "{query}"...</string>
237243
<key>script</key>
238-
<string>php beta_tailwindcss.php "{query}"</string>
244+
<string>php v1_tailwindcss.php "{query}"</string>
239245
<key>scriptargtype</key>
240246
<integer>0</integer>
241247
<key>scriptfile</key>
242248
<string></string>
243249
<key>subtext</key>
244-
<string>Search the TailwindCSS Beta docs...</string>
250+
<string>Search the TailwindCSS v1 docs...</string>
245251
<key>title</key>
246-
<string>TailwindCSS Beta</string>
252+
<string>TailwindCSS v1</string>
247253
<key>type</key>
248254
<integer>0</integer>
249255
<key>withspace</key>
@@ -254,31 +260,30 @@
254260
<key>uid</key>
255261
<string>DFF4C67A-3AC2-4322-B452-3CBA2E3E5BF2</string>
256262
<key>version</key>
257-
<integer>2</integer>
263+
<integer>3</integer>
258264
</dict>
259265
</array>
260266
<key>readme</key>
261267
<string>An ultra-fast TailwindCSS docs search workflow for Alfred 3.
262268
263269
## Usage
264270
265-
266-
Just type `tw` followed by your search query.
271+
To search the [v2 docs](https://tailwindcss.com/docs), just type `tw` followed by your search query.
267272
268273
```
269274
tw &lt;query&gt;
270275
```
271276
272-
To search the [v0 docs](https://v0.tailwindcss.com/docs), just type `tw0` followed by your search query.
277+
To search the [v1 docs](https://v1.tailwindcss.com/docs), just type `tw1` followed by your search query.
273278
274279
```
275-
tw0 &lt;query&gt;
280+
tw1 &lt;query&gt;
276281
```
277282
278-
To search the [beta docs](https://next.tailwindcss.com/docs), just type `twb` followed by your search query.
283+
To search the [v0 docs](https://v0.tailwindcss.com/docs), just type `tw0` followed by your search query.
279284
280285
```
281-
twb &lt;query&gt;
286+
tw0 &lt;query&gt;
282287
```
283288
284289
Either press `⌘Y` to Quick Look the result, or press `&lt;enter&gt;` to open it in your web browser.</string>
@@ -327,9 +332,11 @@ Either press `⌘Y` to Quick Look the result, or press `&lt;enter&gt;` to open i
327332
<integer>410</integer>
328333
</dict>
329334
</dict>
335+
<key>variablesdontexport</key>
336+
<array/>
330337
<key>version</key>
331-
<string>1.1.1</string>
338+
<string>2.0.0</string>
332339
<key>webaddress</key>
333-
<string>https://github.com/clnt</string>
340+
<string>https://github.com/clnt/alfred-tailwindcss-docs</string>
334341
</dict>
335342
</plist>

tailwindcss.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
$parsedown = new Parsedown;
1616
$algolia = new Algolia('R90K1756AM', 'a6e52654d6b591febdf42b07e0e7374a');
1717

18-
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '1.1.0');
18+
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '2.0.0');
1919

20-
$index = $algolia->initIndex('tailwindcss');
20+
$index = $algolia->initIndex('v2_tailwindcss');
2121
$search = $index->search($query);
2222
$results = $search['hits'];
2323

@@ -32,7 +32,7 @@
3232
->arg("https://www.google.com/search?q=tailwindcss+{$query}")
3333
->quicklookurl("https://www.google.com/search?q=tailwindcss+{$query}")
3434
->valid(true);
35-
35+
3636
echo $workflow->output();
3737
exit;
3838
}

v0_tailwindcss.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$parsedown = new Parsedown;
1616
$algolia = new Algolia('R90K1756AM', 'a6e52654d6b591febdf42b07e0e7374a');
1717

18-
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '1.1.0');
18+
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '2.0.0');
1919

2020
$index = $algolia->initIndex('v0_tailwindcss');
2121
$search = $index->search($query);
@@ -32,7 +32,7 @@
3232
->arg("https://www.google.com/search?q=tailwindcss+{$query}")
3333
->quicklookurl("https://www.google.com/search?q=tailwindcss+{$query}")
3434
->valid(true);
35-
35+
3636
echo $workflow->output();
3737
exit;
3838
}

beta_tailwindcss.php renamed to v1_tailwindcss.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
$parsedown = new Parsedown;
1616
$algolia = new Algolia('R90K1756AM', 'a6e52654d6b591febdf42b07e0e7374a');
1717

18-
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '1.1.0');
18+
AlgoliaUserAgent::addSuffixUserAgentSegment('TailwindCSS Alfred Workflow', '2.0.0');
1919

20-
$index = $algolia->initIndex('beta_tailwindcss');
20+
$index = $algolia->initIndex('tailwindcss');
2121
$search = $index->search($query);
2222
$results = $search['hits'];
2323

@@ -32,7 +32,7 @@
3232
->arg("https://www.google.com/search?q=tailwindcss+{$query}")
3333
->quicklookurl("https://www.google.com/search?q=tailwindcss+{$query}")
3434
->valid(true);
35-
35+
3636
echo $workflow->output();
3737
exit;
3838
}

0 commit comments

Comments
 (0)