Option to display __roast_headers__ and __roast_pretty__ window in same time
Hi !
Maybe it could be cool to have an option to display in same time the two windows __roast_headers__ (maybe in small, to see at least response header) and __roast_pretty__ ? Don't know if its difficult to implement…
It's just an idea, but maybe not very interesting… Don't know.
Thanks in advance for your answer and I understand if you close the current issue ;-)
This will be a bit challenging to implement. I think if I get the custom renderers to work, then we can create a custom renderer that shows the headers and the response body at the same time. May be something like that would work better in your case. Not sure, but definitely nice to have.
@sharat87 or maybe simply add an option to automatically split the right pan between two windows,
__roast_headers__ and __roast_pretty__. Vertical size of __roast_headers__ could be calculated thanks the number of lines of its === Response Headers === section and resize automatically thanks trigger the command :resize XX.
It's better to keep __roast_pretty__ in an independent buffer because actually Vim doesn't manage well several filetypes in a same buffer. See for instance https://github.com/neovim/neovim/issues/7866 . When tree sitter will be implemented on NeoVim, IMHO implement a custom renderer could be a solution, but not actually. Currently I believe it's better to keep the buffer __roast_headers__ independent. I don't like https://github.com/diepm/vim-rest-console because of this, all is meld in one buffer and the render is not very good.