Alfred3 workflow to easily open your projects with your favorite JetBrains product.
Last Updated: 24/03/20 05:35:02
JetBrains: Open project
Alfred3 & Alfred4 workflow to easily open your projects with your favorite JetBrains product.
This workflow need one of JetBrains products (2019.1+), and its shell script to works
Installation / Update
$ npm install -g @bchatard/alfred-jetbrains
You can also install alfred-updater to update all your “Alfy Workflow”.
Init shell script
- Via JetBrains Toolbox:
- Open the JetBrains Toolbox window, and then click on the parameter icon;
- In the following form, enable Generate shell scripts, and set a path for script
- More info: Toolbox App 1.11: What’s New.
- Via Product
How to use
- Open Alfred with your usual hotkey
- Type keyword (example
pstorm) followed by your project name
- IntelliJ Idea:
idea(default to Ultimate Edition, see customisation to change this);
pycharm(default to Professional Edition, see customisation to change this);
- Rider: Help wanted;
I test with this products/versions:
- AppCode: 2018.3 / 2019.+;
- CLion: 2018.3 / 2019.+;
- DataGrip: 2018.3 / 2019.+;
- GoLand: 2018.3 / 2019.+;
- IntelliJ Idea: 2018.3 / 2019.+;
- PhpStorm: 2018.3 / 2019.+;
- PyCharm: 2018.3 / 2019.+;
- WebStorm: 2018.3 / 2019.+;
- RubyMine: 2018.3 / 2019.+;
For other versions:
Some of JetBrains product are available in different editions (ex: PyCharm – Professional, Edu & Community).
In that case they share the same
keyword, so you need to customise the Preferences folder to retrieve your projects.
A search engine is used to retrieve relevant project. For some use cases, the default configuration is not optimal for you.
jb you can access to some actions for this workflow.
Clean Projects Cache
Some information are cached for better performance. You can change cache lifetime (see environment variable). This command flush all cache.
Workflow Environment Variables
jb_product_cache_lifetime: cache lifetime in seconds for “product data” (application path, bin path etc) [default: 86400 seconds]
jb_project_cache_lifetime: cache lifetime in seconds for project list (one cache per app) [default: 3600 seconds]
jb_product_customisation_file: path to JSON file for product customisation
jb_search_customisation_file: path to JSON file for search customisation