getsops / sops

Simple and flexible tool for managing secrets
https://getsops.io/
Mozilla Public License 2.0
17.01k stars 877 forks source link

Special `EDITOR` variable for sops #1605

Open musjj opened 2 months ago

musjj commented 2 months ago

A special EDITOR variable for sops would be nice to have (e.g. SOPS_EDITOR following the GIT_EDITOR, SUDO_EDITOR, etc. convention). My use case is for better integration with GUI editors.

For example, I have my EDITOR set to code because I don't want to block my terminal when opening files in VS Code. But for GIT_EDITOR, I set it to code -rw because I want it to block so that git waits until I'm done writing my commit message.

felixfontein commented 2 months ago

Sounds like a good idea to me!

felixfontein commented 2 months ago

I created #1611 to implement this.