Skip to content

Commit dee8526

Browse files
committed
First commit.
0 parents  commit dee8526

File tree

11 files changed

+612
-0
lines changed

11 files changed

+612
-0
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: [mattstein]
2+
ko_fi: mattstein
3+
buy_me_a_coffee: mattts

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create Alfred Workflow
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install Composer dependencies
14+
uses: php-actions/composer@v6
15+
- name: Build Alfred workflow
16+
id: alfred_builder
17+
uses: com30n/build-alfred-workflow@v1
18+
with:
19+
workflow_dir: .
20+
exclude_patterns: '.git/* .gitignore .github docker_tag Dockerfile-php-build DOCKER_ENV output.log resources/*'
21+
custom_version: ${{ github.ref_name }}
22+
- name: Create release
23+
id: create_release
24+
uses: softprops/action-gh-release@v2
25+
if: startsWith(github.ref, 'refs/tags/')
26+
with:
27+
token: ${{ secrets.RELEASE_TOKEN }}
28+
files: ${{ steps.alfred_builder.outputs.workflow_file }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
.DS_Store
3+
vendor/

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.0.1] - 2024-09-12
11+
12+
### Added
13+
14+
- First release.

LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2024 Matt Stein
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Quick Open Project Alfred Workflow
2+
3+
This Alfred workflow fuzzy-searches your development directories so you can quickly open projects in VS Code, PhpStorm, iTerm, or Finder.
4+
5+
It’s heavily tailored to how I use it, but you can change the editors quickly and even dig into `search.php` if you’d like to adjust the configuration of the underlying [Fuze](https://github.com/Loilo/Fuse) library.
6+
7+
## Installation
8+
9+
Download the `.alfredworkflow` file from the [latest release](https://github.com/mattstein/alfred-quick-open-project-workflow/releases) and double-click to install.
10+
11+
## Configuration
12+
13+
You need to configure an environment variable with your project folder paths. You can add however many you’d like, and it’ll work fine if you use Alfred on different machines and add paths relevant to each one.
14+
15+
Set this from the **Workflows** settings, clicking **Quick Open Project**, then the **[x]** at the top right, and clicking the **Environment Variables** tab.
16+
17+
| Variable | Default | Required? | Note |
18+
|---------------------| --- | --- | --- |
19+
| `SEARCH_PATHS` | || |
20+
21+
## Usage
22+
23+
Use the `src` keyword to fuzzy search your directories.
24+
25+
- <kbd>return</kbd> opens the selection in VS Code
26+
- <kbd>⌘</kbd> + <kbd>return</kbd> opens the selection in PhpStorm
27+
- <kbd>shift</kbd> + <kbd>return</kbd> opens the selection in iTerm
28+
- <kbd>ctrl</kbd> + <kbd>return</kbd> reveals the selection in Finder

composer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "mattstein/alfred-quick-open-project-workflow",
3+
"type": "project",
4+
"description": "",
5+
"keywords": ["alfred"],
6+
"license": "MIT",
7+
"require": {
8+
"php": "^8.0",
9+
"joetannenbaum/alfred-workflow": "^1.1",
10+
"loilo/fuse": "^7.0"
11+
},
12+
"minimum-stability": "stable",
13+
"prefer-stable": true
14+
}

composer.lock

Lines changed: 131 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

icon.png

49.6 KB
Loading

0 commit comments

Comments
 (0)