rest.nvim icon indicating copy to clipboard operation
rest.nvim copied to clipboard

Feature request: `:Rest` command

Open NTBBloodbath opened this issue 3 years ago • 0 comments

I think a :Rest command will be great for rest.nvim to evolve and keep growing in the future. This will replace current <Plug>RestNvim commands family, we are going to raise a deprecation warning using vim.deprecate() function (requires #133) at first then delete them after a while.

Improvements provided by :Rest command over current commands:

  • Being able to use it without having to create a keybind first
  • Completion of the command and its possible arguments
  • Greater extensibility and scaling
  • Being able to create such command only for http buffers

Therefore, this will become a breaking change in the future. However, :Rest command will keep the same arguments as current <Plug>RestNvim commands family, that means for running last rest request you could :Rest last or :Rest preview to preview a request without executing it.

NTBBloodbath avatar Aug 13 '22 22:08 NTBBloodbath