Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui interactive commands #7

Open
kndndrj opened this issue May 14, 2023 · 2 comments
Open

Ui interactive commands #7

kndndrj opened this issue May 14, 2023 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@kndndrj
Copy link
Owner

kndndrj commented May 14, 2023

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

Examples of these commands are:

  • goto foreign key
  • delete row
  • duplicate row
  • change cell value

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

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

@kndndrj kndndrj added enhancement New feature or request question Further information is requested labels May 14, 2023
@33KK
Copy link
Contributor

33KK commented Aug 14, 2023

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
Copy link
Owner Author

kndndrj commented Aug 14, 2023

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants