Comments (5)
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
from vim-rest-console.
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
- A file, ideally configurable, to keep the history (not too bad since VRC has a the whole command already).
- A way to call up, display, and hide the history.
- A "click/trigger" handler to make the request. Since VRC supports multiple named output buffers, this handler needs to determine which output buffer to use; probably a new buffer.
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.
from vim-rest-console.
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.
from vim-rest-console.
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?
from vim-rest-console.
@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.
from vim-rest-console.
Related Issues (20)
- Default Query String Parameters HOT 2
- Option to Skip Evaluation Curl Command HOT 1
- Allow global variable to pull in data from environment variables HOT 2
- Authenticate with OAuth2 HOT 3
- Allow to run command before request HOT 2
- How do I change it to a horizontally split buffer instead of vertically split? HOT 1
- Can I auto-format output, e.g. prettify JSON responses? HOT 1
- g:vrc_set_default_mapping issue HOT 1
- Automatic format response does not work for ContentType with charset HOT 4
- Variable replace not working HOT 7
- Execute requests asynchronously and support aborting them
- multipart/form-data Requires cUrl Flags HOT 2
- String escaping in windows and Non-Windows shells
- New feature - write response to file HOT 1
- [Feature Request] Warning check before running request
- [Feature Request] Show more information on performed request
- Reformat output response by using json_pp HOT 1
- Request with Bearer token timing out HOT 2
- Highlight response headers
- use value from response in the following request?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-rest-console.