├── .editorconfig ├── .gitattributes ├── .gitignore ├── .npmrc ├── icon.png ├── info.plist ├── license ├── package.json └── readme.md /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | yarn.lock 3 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sindresorhus/alfred-plash/6ee1da279ce669e4404ba12b42fedc6f0492a630/icon.png -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.sindresorhus.Plash.Alfred 7 | category 8 | Tools 9 | connections 10 | 11 | 145BC00A-5465-40AB-926A-DA7DDFF85DED 12 | 13 | 14 | destinationuid 15 | 87F0AACE-43F8-40B4-B748-93B7EF621AA2 16 | modifiers 17 | 0 18 | modifiersubtext 19 | 20 | vitoclose 21 | 22 | 23 | 24 | 2C99F6F1-EF16-4CF1-9762-5D05A1FFAA4D 25 | 26 | 27 | destinationuid 28 | 16039760-F173-4AB8-9C73-DA7401D5DE23 29 | modifiers 30 | 0 31 | modifiersubtext 32 | 33 | vitoclose 34 | 35 | 36 | 37 | 45F9DD0B-785E-44CE-8138-A1E3901F6A27 38 | 39 | 40 | destinationuid 41 | 24CBF291-F1C3-4D51-8D53-B8746467D1AB 42 | modifiers 43 | 0 44 | modifiersubtext 45 | 46 | vitoclose 47 | 48 | 49 | 50 | 4F7B26D6-23B2-484D-BC8E-77E2809D455D 51 | 52 | 53 | destinationuid 54 | 45CAD8E5-59B8-4FB9-9ECB-C943FD784554 55 | modifiers 56 | 0 57 | modifiersubtext 58 | 59 | vitoclose 60 | 61 | 62 | 63 | 53638B9B-EC0F-4672-88F5-DD819894EF70 64 | 65 | 66 | destinationuid 67 | 145BC00A-5465-40AB-926A-DA7DDFF85DED 68 | modifiers 69 | 0 70 | modifiersubtext 71 | 72 | vitoclose 73 | 74 | 75 | 76 | A36C492D-F5EA-440C-BC44-32309735BAD7 77 | 78 | 79 | destinationuid 80 | 74B3747D-CA8D-48FF-BB0A-69E8D19A74E5 81 | modifiers 82 | 0 83 | modifiersubtext 84 | 85 | vitoclose 86 | 87 | 88 | 89 | AEF62B6A-F430-4BD1-916F-3DF559155F9F 90 | 91 | 92 | destinationuid 93 | 99C6774A-48AF-4537-8414-2881B1DE2F17 94 | modifiers 95 | 0 96 | modifiersubtext 97 | 98 | vitoclose 99 | 100 | 101 | 102 | 103 | createdby 104 | Sindre Sorhus 105 | description 106 | Control the Plash app 107 | disabled 108 | 109 | name 110 | Plash 111 | objects 112 | 113 | 114 | config 115 | 116 | concurrently 117 | 118 | escaping 119 | 103 120 | script 121 | url=$(echo "$split1" | python -c "import sys, urllib; sys.stdout.write(urllib.quote(sys.stdin.read()))") 122 | title=$(echo "$split2" | python -c "import sys, urllib; sys.stdout.write(urllib.quote(sys.stdin.read()))") 123 | 124 | open --background "plash:add?url=${url}&title=${title}" 125 | scriptargtype 126 | 1 127 | scriptfile 128 | 129 | type 130 | 0 131 | 132 | type 133 | alfred.workflow.action.script 134 | uid 135 | 87F0AACE-43F8-40B4-B748-93B7EF621AA2 136 | version 137 | 2 138 | 139 | 140 | config 141 | 142 | argumenttype 143 | 0 144 | keyword 145 | plash 146 | subtext 147 | 148 | text 149 | Add Website 150 | withspace 151 | 152 | 153 | type 154 | alfred.workflow.input.keyword 155 | uid 156 | 53638B9B-EC0F-4672-88F5-DD819894EF70 157 | version 158 | 1 159 | 160 | 161 | config 162 | 163 | delimiter 164 | , 165 | trimarguments 166 | 167 | variableprefix 168 | split 169 | 170 | type 171 | alfred.workflow.utility.split 172 | uid 173 | 145BC00A-5465-40AB-926A-DA7DDFF85DED 174 | version 175 | 1 176 | 177 | 178 | config 179 | 180 | concurrently 181 | 182 | escaping 183 | 102 184 | script 185 | open --background plash:reload 186 | scriptargtype 187 | 0 188 | scriptfile 189 | 190 | type 191 | 0 192 | 193 | type 194 | alfred.workflow.action.script 195 | uid 196 | 16039760-F173-4AB8-9C73-DA7401D5DE23 197 | version 198 | 2 199 | 200 | 201 | config 202 | 203 | argumenttype 204 | 2 205 | keyword 206 | plash 207 | subtext 208 | 209 | text 210 | Reload 211 | withspace 212 | 213 | 214 | type 215 | alfred.workflow.input.keyword 216 | uid 217 | 2C99F6F1-EF16-4CF1-9762-5D05A1FFAA4D 218 | version 219 | 1 220 | 221 | 222 | config 223 | 224 | concurrently 225 | 226 | escaping 227 | 102 228 | script 229 | open --background plash:next 230 | scriptargtype 231 | 0 232 | scriptfile 233 | 234 | type 235 | 0 236 | 237 | type 238 | alfred.workflow.action.script 239 | uid 240 | 45CAD8E5-59B8-4FB9-9ECB-C943FD784554 241 | version 242 | 2 243 | 244 | 245 | config 246 | 247 | argumenttype 248 | 2 249 | keyword 250 | plash 251 | subtext 252 | 253 | text 254 | Next Website 255 | withspace 256 | 257 | 258 | type 259 | alfred.workflow.input.keyword 260 | uid 261 | 4F7B26D6-23B2-484D-BC8E-77E2809D455D 262 | version 263 | 1 264 | 265 | 266 | config 267 | 268 | argumenttype 269 | 2 270 | keyword 271 | plash 272 | subtext 273 | 274 | text 275 | Previous Website 276 | withspace 277 | 278 | 279 | type 280 | alfred.workflow.input.keyword 281 | uid 282 | AEF62B6A-F430-4BD1-916F-3DF559155F9F 283 | version 284 | 1 285 | 286 | 287 | config 288 | 289 | concurrently 290 | 291 | escaping 292 | 102 293 | script 294 | open --background plash:previous 295 | scriptargtype 296 | 0 297 | scriptfile 298 | 299 | type 300 | 0 301 | 302 | type 303 | alfred.workflow.action.script 304 | uid 305 | 99C6774A-48AF-4537-8414-2881B1DE2F17 306 | version 307 | 2 308 | 309 | 310 | config 311 | 312 | argumenttype 313 | 2 314 | keyword 315 | plash 316 | subtext 317 | 318 | text 319 | Random Website 320 | withspace 321 | 322 | 323 | type 324 | alfred.workflow.input.keyword 325 | uid 326 | 45F9DD0B-785E-44CE-8138-A1E3901F6A27 327 | version 328 | 1 329 | 330 | 331 | config 332 | 333 | concurrently 334 | 335 | escaping 336 | 102 337 | script 338 | open --background plash:random 339 | scriptargtype 340 | 0 341 | scriptfile 342 | 343 | type 344 | 0 345 | 346 | type 347 | alfred.workflow.action.script 348 | uid 349 | 24CBF291-F1C3-4D51-8D53-B8746467D1AB 350 | version 351 | 2 352 | 353 | 354 | config 355 | 356 | concurrently 357 | 358 | escaping 359 | 102 360 | script 361 | open --background plash:toggle-browsing-mode 362 | scriptargtype 363 | 0 364 | scriptfile 365 | 366 | type 367 | 0 368 | 369 | type 370 | alfred.workflow.action.script 371 | uid 372 | 74B3747D-CA8D-48FF-BB0A-69E8D19A74E5 373 | version 374 | 2 375 | 376 | 377 | config 378 | 379 | argumenttype 380 | 2 381 | keyword 382 | plash 383 | subtext 384 | 385 | text 386 | Toggle Browsing Mode 387 | withspace 388 | 389 | 390 | type 391 | alfred.workflow.input.keyword 392 | uid 393 | A36C492D-F5EA-440C-BC44-32309735BAD7 394 | version 395 | 1 396 | 397 | 398 | readme 399 | 400 | uidata 401 | 402 | 145BC00A-5465-40AB-926A-DA7DDFF85DED 403 | 404 | xpos 405 | 200 406 | ypos 407 | 55 408 | 409 | 16039760-F173-4AB8-9C73-DA7401D5DE23 410 | 411 | xpos 412 | 270 413 | ypos 414 | 155 415 | 416 | 24CBF291-F1C3-4D51-8D53-B8746467D1AB 417 | 418 | xpos 419 | 270 420 | ypos 421 | 555 422 | 423 | 2C99F6F1-EF16-4CF1-9762-5D05A1FFAA4D 424 | 425 | xpos 426 | 50 427 | ypos 428 | 155 429 | 430 | 45CAD8E5-59B8-4FB9-9ECB-C943FD784554 431 | 432 | xpos 433 | 270 434 | ypos 435 | 285 436 | 437 | 45F9DD0B-785E-44CE-8138-A1E3901F6A27 438 | 439 | xpos 440 | 50 441 | ypos 442 | 555 443 | 444 | 4F7B26D6-23B2-484D-BC8E-77E2809D455D 445 | 446 | xpos 447 | 50 448 | ypos 449 | 285 450 | 451 | 53638B9B-EC0F-4672-88F5-DD819894EF70 452 | 453 | xpos 454 | 50 455 | ypos 456 | 25 457 | 458 | 74B3747D-CA8D-48FF-BB0A-69E8D19A74E5 459 | 460 | xpos 461 | 270 462 | ypos 463 | 690 464 | 465 | 87F0AACE-43F8-40B4-B748-93B7EF621AA2 466 | 467 | xpos 468 | 270 469 | ypos 470 | 25 471 | 472 | 99C6774A-48AF-4537-8414-2881B1DE2F17 473 | 474 | xpos 475 | 270 476 | ypos 477 | 420 478 | 479 | A36C492D-F5EA-440C-BC44-32309735BAD7 480 | 481 | xpos 482 | 50 483 | ypos 484 | 690 485 | 486 | AEF62B6A-F430-4BD1-916F-3DF559155F9F 487 | 488 | xpos 489 | 50 490 | ypos 491 | 420 492 | 493 | 494 | variablesdontexport 495 | 496 | version 497 | 1.0.0 498 | webaddress 499 | https://sindresorhus.com/plash 500 | 501 | 502 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Sindre Sorhus (https://sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alfred-plash", 3 | "version": "1.0.0", 4 | "description": "Alfred workflow to control the Plash app", 5 | "license": "MIT", 6 | "repository": "sindresorhus/alfred-plash", 7 | "author": { 8 | "name": "Sindre Sorhus", 9 | "email": "sindresorhus@gmail.com", 10 | "url": "https://sindresorhus.com" 11 | }, 12 | "type": "module", 13 | "engines": { 14 | "node": ">=18" 15 | }, 16 | "scripts": { 17 | "test": "echo 🦄", 18 | "postinstall": "alfy-init", 19 | "preuninstall": "alfy-cleanup" 20 | }, 21 | "files": [ 22 | "icon.png", 23 | "info.plist" 24 | ], 25 | "keywords": [ 26 | "alfred", 27 | "workflow", 28 | "alfy", 29 | "macos", 30 | "mac", 31 | "plash" 32 | ], 33 | "dependencies": { 34 | "alfy": "^2.0.0" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # alfred-plash 2 | 3 | > [Alfred](https://alfredapp.com) workflow to control the [Plash app](https://github.com/sindresorhus/Plash) 4 | 5 | ## Install 6 | 7 | ```sh 8 | npm install --global alfred-plash 9 | ``` 10 | 11 | *Requires the Alfred [Powerpack](https://www.alfredapp.com/powerpack/).* 12 | 13 | ## Usage 14 | 15 | In Alfred, type `plash`, choose a command, and then press Enter. 16 | 17 | The “Add Website” command accepts a URL and optionally a title: 18 | 19 | ``` 20 | https://sindresorhus.com/plash, Plash website 21 | ``` 22 | 23 | If no title is given, a title will be automatically fetched from the website. 24 | --------------------------------------------------------------------------------