tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

Command of editing/creating credentials? #553

Open bekicot opened 4 years ago

bekicot commented 4 years ago

I tried

:Rails credentials:edit

but the editor does some weird stuff, instead of open the buffer for credentials edits.

Maybe commands like:

:Ecredentials

What do you think?

tpope commented 4 years ago

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:

I'll do the former eventually. If you're looking to take action, feel free to investigate the latter. afterimage.vim might provide inspiration.