haelbichalex / alfred-jetbrains

Alfred3 workflow to easily open your projects with your favorite JetBrains product.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JetBrains: Open project

Alfred3 workflow to easily open your projects with your favorite JetBrains product.

npm version npm downloads per week

Requirements

You need Node.js 8+ and Alfred 3.5+ with the paid Powerpack upgrade.

This workflow need one of JetBrains products (2019.1+), and its shell script to works

Installation / Update

$ npm install -g @bchatard/alfred-jetbrains

Thanks to Alfy and alfred-notifier, you will be notify when a new version is available.

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 jetbrains-projects-secret-light
Default Keywords
  • AppCode: appcode;
  • CLion: clion;
  • DataGrip: datagrip;
  • GoLand: goland;
  • IntelliJ Idea: idea;
  • PhpStorm: pstorm;
  • PyCharm: pycharm;
  • WebStorm: wstorm;
  • Rider: Help wanted;
  • RubyMine: rubymine;
Supported versions I test with this products/versions:
  • AppCode: 2019.1;
  • CLion: 2019.1;
  • DataGrip: 2019.1;
  • GoLand: 2019.1;
  • IntelliJ Idea: 2019.1;
  • PhpStorm: 2019.1;
  • PyCharm: 2019.1;
  • WebStorm: 2019.1;
  • RubyMine: 2019.1;

v2018.3 works if you generate shell script through Toolbox (it works for me for PhpStorm)

For other versions:

JetBrains Actions

With keyword 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.

Customisation

Customization

Known issue

It's an early version

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 customisation

Changelog

Changelog

License

MIT © bchatard

About

Alfred3 workflow to easily open your projects with your favorite JetBrains product.

License:MIT License


Languages

Language:JavaScript 100.0%