Skip to content

whomwah/alfred-vscode-workflow

Repository files navigation

Open in VSCode workflow

semantic-release: deno release

alfred-vscode-workflow

Searches for local Git repos based on the path of your choice and allows you to open them in VSCode. It uses Deno. It's written in TypeScript.

VSCode Alfred 5 Workflow

Install

The project and workflow requires the Deno binary to be installed. This can be done simply from the Deno website above.

Deno is a runtime for JavaScript. Deno was co-created by Ryan Dahl, who also created Node.js.

We also need findd:

  • findd - A tiny little utility that does the magic of finding all the repos really really fast.

The easiest way to install findd is via homebrew (the same with deno):

$ brew install deno
$ brew install whomwah/tap/findd

Once installed you can download the latest version and double click the .workflow file to open and install or update.

Usage

Initially you will need to choose a folder to scan for projects in the workflow config. Don't choose ~ for example as scanning your home directory may cause the scanning script to be just too slow to return anything. It's much better to choose for example ~/my-projects.

By default you access the workflow via the vs command.

There is only one top level command. Other than that you just start typing a project name you are interested in. Once you start seeing results pressing return will attempt to open that project in VSCode.

# Settings

vs > ...

# Anything else

vs ...

Development

You will first need to install deno as mentioned earlier in this README.

Tests

deno task test

Formatting

deno fmt

Build your own workflow

You can also build your own version of the workflow with:

./bin/build_release <version> <notes>

# example

./bin/build_release 1.2.3 blabla

Resources

Copyright

MIT License (http://www.opensource.org/licenses/mit-license.html)