nvim-dbee icon indicating copy to clipboard operation
nvim-dbee copied to clipboard

feat(editor): add run_under_cursor

Open MattiasMTS opened this issue 9 months ago • 1 comments

~edit: I'll try to add treesitter into this as per https://github.com/MattiasMTS/cmp-dbee/blob/ms/v2/lua/cmp-dbee/treesitter/init.lua to support when one is running more complex queries, e.g. multiple CTEs.~ EDIT2: solved, added treesitter to support more complex queries.

Solves #121. As per the discussions in that thread, there are various ways to do this.

We can discuss wether we want this to be ported into the main or just be part of discussion somewhere. It definitely improve the UX a bit - similar to Jetbrain's datagrip style.

Video: EDIT2: uploaded new file with more complex queries

https://github.com/user-attachments/assets/e790897a-32f5-49f9-9d61-6edca4e06aca

MattiasMTS avatar Mar 30 '25 17:03 MattiasMTS

Amazing feature! Left a suggestion which I think should be there. But I absolutely thing this should be merged.

Nice! Thanks for the feedback ✅ I'll leave this open for testing from the others in the issue thread before merging 😊

MattiasMTS avatar Mar 31 '25 15:03 MattiasMTS

I think if we allow this feature, only for filetype=sql, then this is golden to merge. It aligens with the #207 imo.

phdah avatar May 08 '25 08:05 phdah