kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
710 stars 48 forks source link

Feature suggestion: Yank CSV/JSON for results #18

Closed artfulrobot closed 1 year ago

artfulrobot commented 1 year ago

The save to csv/json is a great feature, but often we might want to use the results in an existing buffer.

It's faffy to save somewhere, load that in a buffer, select and yank, paste it into the buffer we wanted it in, then go back to delete the saved buffer from disk and vim.

It would be really helpful to be able to yank-as-csv or yank-as-json from the results buffer, then we could simply paste it where we want it.

It would be super great if we could also yank a row or selected rows of the output, too, but I suspect that's a much bigger fetaure!

kndndrj commented 1 year ago

This is a great idea!

I still need to think about some missing pieces but I think it's very doable.

Thanks for sharing and opening the issue! (this goes for all your ooened issues 😄)

kndndrj commented 1 year ago

@artfulrobot check #28 - any feedback would be welcome, thanks!

artfulrobot commented 1 year ago

Thanks! But as I hit some problems using this extension when I was initially reviewing, I looked elsewhere and am now using DadBod / DBUI as I needed something to be getting on with. I would like to re-review this extension one day though when I next get some free time / when DBUI is missing something I need.

kndndrj commented 1 year ago

closed with #28