lambdalisue / vim-gista

An alternative gist.vim, vim plugin which manipulate gists in Vim.
http://www.vim.org/scripts/script.php?script_id=4976
MIT License
156 stars 5 forks source link

Make harder to publish something by accident #46

Closed suy closed 8 years ago

suy commented 9 years ago

Hi.

I just installed gista, and I accidentally published something I did not want to publish. I opened vim, and the startify.vim buffer appeared. I run :Gista for the first time, but I wanted to do :Gista --list instead. I tried to cancel pressing Ctrl+C and not entering any information in the prompts, but I ended up publishing anonymously the current buffer, which contains the list of recently opened files and repositories that I had, which leaked a bit of private information. Since it is posted anonymously, I can't delete it. Is nothing critical, and doesn't seem to be reachable without the URL, but still a bit it could be problematic.

I'll try to be more careful the next time, but I would not mind something to make mistakes like this harder. Specially for publishing all the opened buffers. Maybe making :Gista (with no arguments) list instead of post a gist by default, or with an option to force the user to confirm before publishing.

Besides that, the plugin looks awesome. Thank you. :)

lambdalisue commented 9 years ago

True. Well while ArgumentPapser used in gista improved a lot in vim-gita, I would like to drop backward compatibility and make new one so at that time, I'll fix it up as your suggestion