ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
548 stars 129 forks source link

Cannot select .env files on macOS #93

Closed jimklo closed 5 years ago

jimklo commented 5 years ago

Seems like this could be a great plugin, however since it doesn't automatically pickup the .env files in the project root, it seems I have to manually select.

On macOS (within PyCharm - but maybe other IDEA based projects as well), I'm unable to navigate to select the .env file as since it's a 'dot file', it is hidden from the file selector.

The plugin needs to allow one of three options:

  1. select the .env file by default located in the project root
  2. have the add .env file menu open a navigator that shows hidden dot files.
  3. give me the ability to just specify an absolute path via cut/paste or typing.
ashald commented 5 years ago

Thanks for the feedback!

Apparently you're facing an issue with hidden files in macOS - this use case is actually covered in the readme.

With regards to other suggestions: 1) I prefer explicit behaviors over implicit and do not believe plugin can make an assumption about the default file to load for all its users. You may be able achieve desired behavior for yourself by editing run configuration templates in your IDE. 2) This is covered in the readme. 3) This is already supported, please see https://github.com/ashald/EnvFile/issues/62#issuecomment-390831747 for details.