kndndrj / nvim-dbee

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

Ui interactive commands #7

Open kndndrj opened 1 year ago

kndndrj commented 1 year ago

Some research needs to be done for implementation of interactive commands in results buffer.

Examples of these commands are:

TODO: investigate what works and what makes sense to progress the story

If anyone stumbles upon this issue, any help/feedback is valuable.

33KK commented 1 year ago

What's exactly the issue with change cell value and goto foreign key? It seems like NuiTable provide a way to get the cell under the cursor using table:get_cell() (if I understood nui docs correctly), then you can show vim.ui.input dialog or something like that and either modify the table in memory and save later, or directly save to the database. Deleting rows also should be doable with a custom mapping.

Not sure how duplication should work though, I don't think using nvim's yank is a good idea.

kndndrj commented 1 year ago

@33KK thanks for taking interest in the issue.

This issue is more of a placeholder for me, that once I get some time to work on it, I remember what I set out to do!

Unfortunately, I think there are still some other fundamental things, that are more important to be done before I put any effort into this :)