johnpapa/vscode-cloak

Show/Hide values in generic files

Opened this issue · 6 comments

Hey John,

Does this extension support other files than .env? I need to be able to hide values in local.settings.json.

What about having a config file, eg. .clockrc where we can provide a list of files (must be k/v files) to be handled by this extension?

Even better, what if we can provide a Regex and have Cloak use it (in any text file)?

Cheers.

Hi - it does not today. But I would love ideas on how to do that. This tool uses the textmate patterns to hide. Ther are some for .env files.

If you can figure out what patterns other files use, it is possible. The problem is I could not figure out how to scope it to specifically named files.

Sure. I will give it some thought.

Thanks @manekinekko - i'd love to get this working for local.settings.

Done. Now you can filter out file types via the setting, using JS RegExp:

"cloak": {
   "files" : [
        "local.settings.json",
         ".env"
     ]
}

WDYT?

Any progress on this?

I found this extension because I'd like to live stream some of my coding and hide config values so they don't accidentally show up on stream. But I am not using ENV variables but config files.

Looking forward to this version being merged and functional fully. So good.

Done. Now you can filter out file types via the setting, using JS RegExp:

"cloak": {
   "files" : [
        "local.settings.json",
         ".env"
     ]
}

WDYT?

Hey, how is the status on this? Is this merged? Where do i put the json?