├── .gitignore ├── LICENSE ├── README.md ├── icon.png └── info.plist /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Alex Chan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # alfred-open-with-vscode-workflow 2 | 3 | ![Screenshot](https://user-images.githubusercontent.com/604167/113921066-69c1d300-979a-11eb-9341-bb69cc6c0b1a.png) 4 | 5 | An [Alfred 5](https://www.alfredapp.com/) workflow opening files or folders with [Visual Studio Code](https://code.visualstudio.com/). 6 | 7 | ## Installation 8 | 9 | 1. [Download the workflow](https://github.com/alexchantastic/alfred-open-with-vscode-workflow/releases/latest) 10 | 2. Double click the `.alfredworkflow` file to install 11 | 12 | Note that the [Alfred Powerpack](https://www.alfredapp.com/powerpack/) is required to use workflows. 13 | 14 | ## Usage 15 | 16 | ### Open 17 | 18 | 1. Use the keyword `code` to trigger the workflow 19 | 2. Press `enter` to open the current folder or the selected file 20 | 3. Alternatively, type a path to open (e.g., `~/Desktop`) 21 | 22 | ### Search & Open 23 | 24 | 1. Use the keyword `codef` to trigger the workflow 25 | 2. Press `enter` or begin to type your file or folder search term 26 | 3. Select the file or folder you want to open and press `enter` 27 | 28 | ## License 29 | 30 | Code released under the [MIT License](https://github.com/alexchantastic/alfred-open-with-vscode-workflow/blob/master/LICENSE). 31 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexchantastic/alfred-open-with-vscode-workflow/cd8723fee3c277511cfac6957683f6f47364eed1/icon.png -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.alexchantastic.openwithvscode 7 | category 8 | Productivity 9 | connections 10 | 11 | 0713EB05-61B7-4A89-BF4B-F7A0E1DC7B52 12 | 13 | 14 | destinationuid 15 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 16 | modifiers 17 | 0 18 | modifiersubtext 19 | 20 | vitoclose 21 | 22 | 23 | 24 | 21750E1C-77A3-4F52-81DD-1052976D1742 25 | 26 | 27 | destinationuid 28 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 29 | modifiers 30 | 0 31 | modifiersubtext 32 | 33 | sourceoutputuid 34 | BB36521F-27E9-4608-8FB9-DF063652E6EE 35 | vitoclose 36 | 37 | 38 | 39 | destinationuid 40 | 0713EB05-61B7-4A89-BF4B-F7A0E1DC7B52 41 | modifiers 42 | 0 43 | modifiersubtext 44 | 45 | vitoclose 46 | 47 | 48 | 49 | 23DEA358-A623-4725-95B2-79C207AF4556 50 | 51 | 52 | destinationuid 53 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 54 | modifiers 55 | 0 56 | modifiersubtext 57 | 58 | vitoclose 59 | 60 | 61 | 62 | 5483D3AE-DBE6-4FB8-ACF9-45EF494F0A57 63 | 64 | 65 | destinationuid 66 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 67 | modifiers 68 | 0 69 | modifiersubtext 70 | 71 | sourceoutputuid 72 | A715DB3D-EAD1-4231-AD8D-D0669E91AFE2 73 | vitoclose 74 | 75 | 76 | 77 | destinationuid 78 | CB080C5E-956D-46AE-B833-3660D68FA9AD 79 | modifiers 80 | 0 81 | modifiersubtext 82 | 83 | vitoclose 84 | 85 | 86 | 87 | CB080C5E-956D-46AE-B833-3660D68FA9AD 88 | 89 | 90 | destinationuid 91 | 21750E1C-77A3-4F52-81DD-1052976D1742 92 | modifiers 93 | 0 94 | modifiersubtext 95 | 96 | vitoclose 97 | 98 | 99 | 100 | CC170ECD-6B82-4A05-8681-8185ACE453FE 101 | 102 | 103 | destinationuid 104 | 5483D3AE-DBE6-4FB8-ACF9-45EF494F0A57 105 | modifiers 106 | 0 107 | modifiersubtext 108 | 109 | vitoclose 110 | 111 | 112 | 113 | DDFAE429-BEEC-49EA-BEDB-7E71BD402695 114 | 115 | 116 | destinationuid 117 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 118 | modifiers 119 | 0 120 | modifiersubtext 121 | 122 | vitoclose 123 | 124 | 125 | 126 | 127 | createdby 128 | Alex Chan 129 | description 130 | Open files or folders in Visual Studio Code. 131 | disabled 132 | 133 | name 134 | Visual Studio Code 135 | objects 136 | 137 | 138 | config 139 | 140 | openwith 141 | /Applications/Visual Studio Code.app 142 | sourcefile 143 | 144 | 145 | type 146 | alfred.workflow.action.openfile 147 | uid 148 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 149 | version 150 | 3 151 | 152 | 153 | config 154 | 155 | acceptsmulti 156 | 1 157 | filetypes 158 | 159 | name 160 | Open with Visual Studio Code 161 | 162 | type 163 | alfred.workflow.trigger.action 164 | uid 165 | DDFAE429-BEEC-49EA-BEDB-7E71BD402695 166 | version 167 | 1 168 | 169 | 170 | config 171 | 172 | anchorfields 173 | 174 | argumenttrimmode 175 | 0 176 | argumenttype 177 | 0 178 | daterange 179 | 0 180 | fields 181 | 182 | 183 | field 184 | kMDItemDisplayName 185 | not 186 | 187 | split 188 | 189 | value 190 | {query} 191 | words 192 | 193 | 194 | 195 | field 196 | kMDItemAlternateNames 197 | not 198 | 199 | split 200 | 201 | value 202 | {query} 203 | words 204 | 205 | 206 | 207 | field 208 | kMDItemFinderComment 209 | not 210 | 211 | split 212 | 213 | value 214 | {query} 215 | words 216 | 217 | 218 | 219 | includesystem 220 | 221 | keyword 222 | codef 223 | limit 224 | 0 225 | runningsubtext 226 | 227 | scopes 228 | 229 | sortmode 230 | 0 231 | subtext 232 | Find files and folders and open in Visual Studio Code 233 | title 234 | Find and open with Visual Studio Code 235 | types 236 | 237 | withspace 238 | 239 | 240 | type 241 | alfred.workflow.input.filefilter 242 | uid 243 | 23DEA358-A623-4725-95B2-79C207AF4556 244 | version 245 | 2 246 | 247 | 248 | config 249 | 250 | tasksettings 251 | 252 | taskuid 253 | com.alfredapp.automation.core/files-and-folders/finder.selection 254 | 255 | type 256 | alfred.workflow.automation.task 257 | uid 258 | CB080C5E-956D-46AE-B833-3660D68FA9AD 259 | version 260 | 1 261 | 262 | 263 | config 264 | 265 | tasksettings 266 | 267 | taskuid 268 | com.alfredapp.automation.core/files-and-folders/finder.windows.current 269 | 270 | type 271 | alfred.workflow.automation.task 272 | uid 273 | 0713EB05-61B7-4A89-BF4B-F7A0E1DC7B52 274 | version 275 | 1 276 | 277 | 278 | config 279 | 280 | argumenttype 281 | 1 282 | keyword 283 | code 284 | subtext 285 | Open Finder folder or selection in Visual Studio Code or optionally enter a path to open 286 | text 287 | Open with Visual Studio Code 288 | withspace 289 | 290 | 291 | type 292 | alfred.workflow.input.keyword 293 | uid 294 | CC170ECD-6B82-4A05-8681-8185ACE453FE 295 | version 296 | 1 297 | 298 | 299 | config 300 | 301 | conditions 302 | 303 | 304 | inputstring 305 | {query} 306 | matchcasesensitive 307 | 308 | matchmode 309 | 1 310 | matchstring 311 | 312 | outputlabel 313 | Selection 314 | uid 315 | BB36521F-27E9-4608-8FB9-DF063652E6EE 316 | 317 | 318 | elselabel 319 | No Selection 320 | hideelse 321 | 322 | 323 | type 324 | alfred.workflow.utility.conditional 325 | uid 326 | 21750E1C-77A3-4F52-81DD-1052976D1742 327 | version 328 | 1 329 | 330 | 331 | config 332 | 333 | conditions 334 | 335 | 336 | inputstring 337 | {query} 338 | matchcasesensitive 339 | 340 | matchmode 341 | 1 342 | matchstring 343 | 344 | outputlabel 345 | Path 346 | uid 347 | A715DB3D-EAD1-4231-AD8D-D0669E91AFE2 348 | 349 | 350 | elselabel 351 | No Path 352 | hideelse 353 | 354 | 355 | type 356 | alfred.workflow.utility.conditional 357 | uid 358 | 5483D3AE-DBE6-4FB8-ACF9-45EF494F0A57 359 | version 360 | 1 361 | 362 | 363 | readme 364 | An Alfred 5 workflow for opening files or folders with Visual Studio Code. 365 | uidata 366 | 367 | 0713EB05-61B7-4A89-BF4B-F7A0E1DC7B52 368 | 369 | xpos 370 | 775 371 | ypos 372 | 385 373 | 374 | 0DF99641-3C65-4832-B2BA-B2B6A5B78B3D 375 | 376 | xpos 377 | 1110 378 | ypos 379 | 20 380 | 381 | 21750E1C-77A3-4F52-81DD-1052976D1742 382 | 383 | xpos 384 | 600 385 | ypos 386 | 405 387 | 388 | 23DEA358-A623-4725-95B2-79C207AF4556 389 | 390 | xpos 391 | 100 392 | ypos 393 | 195 394 | 395 | 5483D3AE-DBE6-4FB8-ACF9-45EF494F0A57 396 | 397 | xpos 398 | 285 399 | ypos 400 | 405 401 | 402 | CB080C5E-956D-46AE-B833-3660D68FA9AD 403 | 404 | xpos 405 | 410 406 | ypos 407 | 385 408 | 409 | CC170ECD-6B82-4A05-8681-8185ACE453FE 410 | 411 | xpos 412 | 95 413 | ypos 414 | 385 415 | 416 | DDFAE429-BEEC-49EA-BEDB-7E71BD402695 417 | 418 | xpos 419 | 100 420 | ypos 421 | 20 422 | 423 | 424 | userconfigurationconfig 425 | 426 | version 427 | 1.3.0 428 | webaddress 429 | https://github.com/alexchantastic/alfred-open-with-vscode-workflow 430 | 431 | 432 | --------------------------------------------------------------------------------