diepm / vim-rest-console

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

Some idea #48

Open rawaludin opened 7 years ago

rawaludin commented 7 years ago

I really like this plugin. Sometimes I use this instead of postman. But, sometimes I turn back to postman because I could easily access saved request. Therefore, I don't have to recreate my request detail.

Is it possible to make a list of saved request and automatically open those list when I open rest console? Therefore I could click my saved request and replay it.

diepm commented 7 years ago

Thanks for your idea. I've thought about it for a few days. It's not terribly hard but involves several small things to do that take time while my spare time is limited. The TODO list includes

If you want to take the lead, I'll try to provide as much help as I can. Currently I'm planning for async VRC using the new feature of Vim 8.

shawnaxsom commented 7 years ago

Currently I just use a mapping that opens up a file from my personal notes directory. That will get me by.

But as an alternative or addition to having internal history, it could be good to allow VRC to work within other filetypes, though it might be too tricky. Rather than only using just .rest files or filetypes, it would be nice to be able to embed it in markdown or vimwiki files. Before finding VRC I was embedding cURL commands in vimwiki, allowing me to hyperlink as a wiki and add notes. Of course parsing would probably require a delimiter, maybe double equals could delimit the top of the VRC section of the file.

diepm commented 7 years ago

Is it somewhat like Jupyter with Python code embedded? It would be great though I'm not sure how useful it is to embed VRC in a document. Do you have some use cases?

shawnaxsom commented 7 years ago

@diepm If the logic would be too complicated it probably wouldn't be worth it. But yeah you could think of it like Jupyter in a way. My use case would be within personal notes or TODOs. If I am programming on a task, I have a Markdown file with task notes, and it could be nice to embed a query under one of the TODO items. Or I might do the same for long-term documentation about the system.

That would allow for saving commands executed within possibly any file format (you could even embed it into source code comments if you wanted). It might suite the needs of @rawaludin unless he is instead wanting just an MRU list saved from every execution of a query from any file.

CaptainQuirk commented 6 years ago

Hi guys ! Thanks for all the good work !

What about saving the .rest files ?

I've been using VRC for several years now, creating a .rest folder, mostly VCS ignored, containing saved .rest files with request details.

It has been working quite well