Open eeeXun opened 2 months ago
Thank you for your report.
I won’t change the behavior of :Rest open
because it doesn’t run any requests, but I can change :Rest run
to report the request first and then open the UI.
Will this satisfy your need?
I won’t change the behavior of
:Rest open
because it doesn’t run any requests,
Oh sorry. I messed up the open
and run
command. All my description about :hor Rest open
should be substituted with :hor Rest run
but I can change
:Rest run
to report the request first and then open the UI. Will this satisfy your need?
Yes, I think that should fix this problem
Prerequisites
Neovim Version
v0.10.1
Operating system/version
Linux
Actual behavior
If run rest.nvim with horizontal split,
:hor Rest open
. And you setsplitkeep
toscreen
ortopline
, which will change the cursor position when necessary.If your cursor changed, the request section may be wrong.
e.g. Suppose my cursor is on the line
http://test2.com
. And I setsplitkeep
totopline
. After running:hor Rest open
, therest_nvim_result
shows that I requestedhttp://test1.com
.Expected behavior
Maybe we should request
http://test1.com
first and then open/split therest_nvim_result
panel.Steps to reproduce
Set
splitkeep
toscreen
ortopline
, which will change your cursor position when horizontal split. Then run:hor Rest open
Other information
No response
Repro (
lazy.nvim
)