Skip to content

Hide passwords #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RayBenefield opened this issue Dec 10, 2017 · 2 comments
Closed

Hide passwords #1

RayBenefield opened this issue Dec 10, 2017 · 2 comments

Comments

@RayBenefield
Copy link

Would it be possible to use this in combination with say a regex expression to hide passwords and stuff in a JSON file. I've done live code streaming a few times and the risk of showing a password/secret is real. Wondering if this could help with that use case.

@dbmrq
Copy link
Owner

dbmrq commented Dec 11, 2017

There you go, with the latest version you can use :call Redact('pattern') to redact all text matching a regex expression.

Just keep in mind that the text will still be visible if you select it in visual mode, so you'd have to double check for that when recording sensitive information. :)

@dbmrq dbmrq closed this as completed Dec 11, 2017
@RayBenefield
Copy link
Author

Much appreciated @dbmrq 👍 and great response time ⚡️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants