feat(editor): add run_under_cursor
~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
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 😊
I think if we allow this feature, only for filetype=sql, then this is golden to merge. It aligens with the #207 imo.