EnvFile icon indicating copy to clipboard operation
EnvFile copied to clipboard

Multiline variables support

Open ledoyen opened this issue 5 years ago • 4 comments

Hello,

I have the need explained in #104.

So here is a proposition to get it work:

  • Support multi-line variables on single-line with double quote strings and the \n character for newlines
  • Support multi-line variables with line breaks using double quotes as delimiter

This addition follow the behavior described in the dotenv ruby tool: https://github.com/bkeepers/dotenv#multi-line-values

Hoping this is satisfying for you and @vladAnk

ledoyen avatar Nov 30 '20 00:11 ledoyen

@ashald was wondering if you'd be able to merge this PR as I ran into this problem and can't really find a reasonable way around multiline env variables.

camlesom avatar Feb 03 '21 20:02 camlesom

Hi! Thanks a lot for your contribution! I'll try to look into your PR as soon as I can. Recently I don't have much time for OSS activity, unfortunately. That being said, I don't want to abandon this plugin either. I hope to find some time review recent contributions in the next few months, and will be sure to check your work. Please keep your branch in place so that I can learn from your findings!

P.S.: Hope you can use yaml multi-line string smeanwhile

ashald avatar Feb 06 '21 20:02 ashald

Any news on this PR?

jonatascastro12 avatar Jun 08 '21 22:06 jonatascastro12

Not yet - I don't have time for OSS activity right now. Will review outstanding PRs and cut a new release whenever I get a chance though. Appreciate your contribution! In the meantime, you should be able to get your own build and install plugin from file to get this working.

ashald avatar Jun 10 '21 02:06 ashald

Looks great - thanks!

ashald avatar Oct 02 '22 07:10 ashald