You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way rails credentials:edit works is it decrypts credentials.yml.enc to a temp file, opens that temp file in your editor, and re-encrypts upon exiting the editor. Two rails.vim solutions spring to mind:
Make :Rails behave the same as :Git commit in Fugitive: use jobs and a clever value of $EDITOR to support editing temp files. I think this is a good idea with uses beyond credentials:edit, but Fugitive's new functionality is a work in progress and I'm not ready to extract it yet.
Upon editing credentials.ymc.enc, load in the unencrypted contents using BufReadCmd, and upon writing, re-encrypt using BufWriteCmd. A command like :Ecredentials could be paired with this, but I tend not to have one off commands for configuration files, as there are just too many of them.
I'll do the former eventually. If you're looking to take action, feel free to investigate the latter. afterimage.vim might provide inspiration.
I tried
but the editor does some weird stuff, instead of open the buffer for credentials edits.
Maybe commands like:
What do you think?
The text was updated successfully, but these errors were encountered: