Skip to content

Commit

Permalink
Merge pull request #15 from gaufde/master
Browse files Browse the repository at this point in the history
Re-write to support all IDEs in one workflow
  • Loading branch information
artemy authored Nov 25, 2024
2 parents 4e85d16 + 50beb60 commit 5842c5e
Show file tree
Hide file tree
Showing 10 changed files with 301 additions and 222 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build artifacts
run: python3 build.py
run: python3 build.py ${{ env.VERSION }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
Expand Down
Binary file added .readme/images/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 37 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
# JetBrains projects for Alfred
# Recent JetBrains Projects for Alfred

![test & release](https://github.com/artemy/alfred-jetbrains-projects/workflows/test%20&%20release/badge.svg)
![MIT License](https://img.shields.io/github/license/artemy/alfred-jetbrains-projects)

Alfred workflow for opening your JetBrains IDEs projects
An Alfred workflow for opening your JetBrains IDEs projects

![image](.readme/images/screenshot.png)

## Supported IDEs

| IDE Name | Version | Keyword |
|----------------|---------|---------------|
| Android Studio | 4.1+ | androidstudio |
| AppCode | 2020.3+ | appcode |
| CLion | 2020.3+ | clion |
| DataGrip | 2020.3+ | datagrip |
| GoLand | 2020.3+ | goland |
| IntelliJ IDEA | 2020.3+ | idea |
| PhpStorm | 2024.3+ | phpstorm |
| PyCharm | 2020.3+ | pycharm |
| RustRover | 2024.1+ | rustrover |
| WebStorm | 2020.3+ | webstorm |

Support for older IDE versions is not guaranteed.

## Getting started

### Prerequisites
Expand All @@ -33,20 +16,45 @@ this [guide](https://docs.python-guide.org/starting/install3/osx/).

### Installing

Download `*.alfredworkflow` file for your IDE from the latest release
Download the `alfred-jetbrains-projects.alfredworkflow` file from the latest release
at [Releases](https://github.com/artemy/alfred-jetbrains-projects/releases) page and open it with Alfred.

### How to Use
#### ⚠️ Set a keyword for every IDE you use ⚠️

By default, each IDE is inactive. Setting a keywords activates an IDE:
![img.png](.readme/images/img.png)

## How to Use

Open Alfred and type keyword for your IDE (see Supported IDEs above). Workflow will display list of recent projects (
Open Alfred and type keyword for your IDE (see Supported IDEs below). The workflow will display a list of recent projects (
sorted by time last opened descending).

You can further filter project list by typing additional words. Fuzzy first-letter search is supported (i.e.
typing `map` will find `my-awesome-project`):

![animation](.readme/images/animation.gif)

## Running the tests
### Supported IDEs

IDE — Name — Version — Keyword
- Android Studio — 4.1+ — androidstudio
- AppCode — 2020.3+ — appcode
- CLion — 2020.3+ — clion
- DataGrip — 2020.3+ — datagrip
- GoLand — 2020.3+ — goland
- IntelliJ — IDEA — 2020.3+ — idea
- PhpStorm — 2024.3+ — phpstorm
- PyCharm — 2020.3+ — pycharm
- RustRover — 2024.1+ — rustrover
- WebStorm — 2020.3+ — webstorm

Support for older IDE versions is not guaranteed.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

### Running the tests

Make sure to first install test dependencies:

Expand All @@ -72,10 +80,6 @@ coverage report -m # display coverage figures
* [Python 3.9](https://docs.python.org/3.9/)
* [coverage.py](https://coverage.readthedocs.io/) - Code coverage measurement

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
Expand All @@ -84,3 +88,9 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md

See [CONTRIBUTORS.md](CONTRIBUTORS.md)
and [contributors](https://github.com/artemy/alfred-jetbrains-projects/contributors) for the list of contributors.

## Legal
This workflow is not associated with JetBrains in any way.

The logos used are:
> Copyright © 2024 JetBrains s.r.o. JetBrains and the JetBrains logo are trademarks of JetBrains s.r.o.
134 changes: 0 additions & 134 deletions alfred/info.plist

This file was deleted.

62 changes: 62 additions & 0 deletions alfred/template.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>com.github.artemy.jb_projects</string>
<key>connections</key>
<dict/>
<key>createdby</key>
<string>Artem Makarov</string>
<key>description</key>
<string>Alfred workflow for opening your JetBrains IDEs projects</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Recent JetBrains Projects</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>open -nb $bundle_id --args $@</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>2A23DCF4-C92B-48F0-99E8-A560582B30B5</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>2A23DCF4-C92B-48F0-99E8-A560582B30B5</key>
<dict>
<key>xpos</key>
<real>470</real>
<key>ypos</key>
<real>480</real>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array/>
<key>version</key>
<string>3.0</string>
<key>webaddress</key>
<string>https://github.com/artemy/alfred-jetbrains-projects</string>
</dict>
</plist>
Loading

0 comments on commit 5842c5e

Please sign in to comment.