oysandvik94 / curl.nvim

Run requests with curl, formatted with jq, and persisted commands according to your own workflow
95 stars 3 forks source link

feature suggestion: simplify the UX #33

Open idelice opened 1 month ago

idelice commented 1 month ago

I wanted to suggest a new and more simple approach working with both global and custom curls..

Right now, we have a bunch of commands to interact with the plugin:

" A buffer that is scoped to the current working directory
:CurlOpen

" A global buffer that will be the same for all Neovim instances
:CurlOpen global

" Create or open a new collection with the given scope
:CurlOpen collection global {any_name}
:CurlOpen collection scoped {any_name}

" Open a picker to select a collection
:CurlCollection global
:CurlCollection scoped

What if, instead of these commands, we would have an interface with vim-commands to create, delete and update each curl we have in our globals and customs?

Take mini.files as an example; you can use your normal vim commands to create, delete, update and open buffers! Wouldn't it be nice to have the same functionality here?

That way, we can have one UI, where we have stored all our curls in a nice readable way, and delete whatever we want to delete, create new ones, update them or enter them.

oysandvik94 commented 3 weeks ago

Sorry that I'm late to this one!

Personally I dont use a lot of UI's in Neovim, having a picker and a command is usually enough for me. So creating an involved UX is not something I would personally prioritize working on.

However, if someone is open to contributing one that would be very welcome.

I might try experimenting with something simple at one point though if I get some free time.