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
539 stars 129 forks source link

The plugin can't see hidden files #134

Open t-art opened 3 years ago

t-art commented 3 years ago

Tried to use .env file but, the plugin can't see hidden files in linux even though IDE does see it. I am not able to rename file because in our company we use exactly ".env" name of a config file.

cm-kazup0n commented 3 years ago

@t-art Hi, I have to use envfile named .env too. Here's my workaround (in my macBook)

  1. Choose any file in the project root(or in directory where the envfile exists)
  2. After choosing the file, selected file is shown in the envfile list
  3. Edit the file name to .env

image

charlot3 commented 3 years ago

@t-art Hi, it's easy to figure out how to find hidden files by a simple command while choosing files on macos for example, just cmd + shift + [.] and you can see the .env files. Hope it works for you.

jagwire16 commented 3 years ago

While I did confirm that both workarounds listed above do work as expected, it would be nice if hidden files were shown by default in this view given that the entire context of selecting the file in the first place is that it will almost certainly be called .env and therefore be hidden. I do have hidden files visible in Finder, yet that property is not inherited in the JetBrains file selector. I also created a key binding to show hidden files in the file chooser and that did not work to show the .env file. If this is a limitation of the IDE, it's understandable. However, if it's a context option you can pass into the SDK when someone clicks on the + button that would allow hidden files to be shown by default, that would be ideal.

ashald commented 3 years ago

I believe I had some code to request hidden files to be shown. If this broke - I'd welcome a PR with a fix.