diepm / vim-rest-console

A REST console for Vim.
658 stars 54 forks source link

New feature - write response to file #88

Closed ivangreene closed 4 years ago

ivangreene commented 4 years ago

I might try to work on this at some point: the concept is just to be able to direct the output to a file instead of a buffer. Sometimes a response can be massive and pretty much crash Vim for me. Rather than having to reconstruct the curl to run on the command line, it would be great to be able to direct this to a file. Maybe some kind of option that could come before the path in the editor? Something like:

> outfile.json
GET /users

Let me know if anyone has ideas on what this should look like

ivangreene commented 4 years ago

Closing because I realized this can already be accomplished with curl's -o 😄 :

-o outfile.json
GET /users