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

Ability to cancel ongoing query #46

Closed
aerosol opened this issue Jun 25, 2020 · 2 comments
Closed

Ability to cancel ongoing query #46

aerosol opened this issue Jun 25, 2020 · 2 comments

Comments

@aerosol
Copy link

aerosol commented Jun 25, 2020

Hello. Thank you for this amazing plugin.
Currently there is no way to kill a running query when it takes forever to finish.
Would it be possible to handle C-c or similar to drop the execution?

@kristijanhusak
Copy link
Owner

kristijanhusak commented Jun 25, 2020

C-c should interrupt the query.
There's a PR for vim-dadbod that adds async query running (tpope/vim-dadbod#64), but it's still not merged.

You can use my fork until that gets merged https://github.com/kristjianhusak/vim-dadbod, and add this to your vimrc:

let g:db_async = 1

This will make all queries run async, and you can cancel them from the preview window with C-c, or by closing the preview window.

@aerosol
Copy link
Author

aerosol commented Jun 25, 2020

Beautiful thank you!

@aerosol aerosol closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants