-
Notifications
You must be signed in to change notification settings - Fork 2
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
Custom simple & flexible UI over vim-dadbod #50
Comments
Actually I was wrong, some weird behavior of the result window is not from vim-dadbod-ui BUT from vim-dadbod plugin: https://github.com/tpope/vim-dadbod which is supposed to be minimal and flexible.. Using vim-dadbod without the other UI pluginWhen using vim-dadbod without the UI from vim-dadbod-ui plugin, it is much better, and I have a better control on the windows, buffers, etc.. For example:
I want my own flexible UI on top of vim-dadbod !!I want to pin & name a result bufferCurrently the result buffer is volatile, simply running :CtrlSpace or running another query will hide the buffer. I want to be able to 'pin' a result buffer, so it does not disappear while I'm looking away, run :CtrlSpace, or run another query. I want to give a 'virtual name' to a result buffer, without saving it to the file system when pinning, so I know what that result is about (e.g: "all resource types") (in vim's buffer list, in the status line, ...) I want to see the result's input query in the result bufferor have a mapping to show it / toggle it at the beginning of the result buffer. I want to reload the result's buffer with the same queryvim-dadbod already has a mapping for that, but it doesn't seem to work... Suggestion:
I want helper mappings, displays while writing queries(ultimate would be to have some of these info in a floating window, but then how to position this window in non-obstrusive way?)
A discoverable tree view of the database would be helpful (similar to vim-dadbod-ui, but less rigid and simpler) |
Another option: https://github.com/nanotee/sqls.nvim It supports executing sql commands through the language server.. |
See second comment for constructive info: #50 (comment)
The plugin https://github.com/kristijanhusak/vim-dadbod-ui is necessary (edit: it's not), but is a PAIN IN THE ASS TO USE!!!!
Because it forces you to use special buffers, that are managed by the plugin, not me!!!
The layout is rigid, and I cannot manage the windows myself without becoming crazy after a few window operations and query run..
Query buffers are meant to be run entirely by default, I never want to run the whole buffer (or I'll make a mapping for that if needed like
:%RunTheQuery
)My mapping of choice to run the current query:
nmap <leader><leader> mmvip<Plug>(DBUI_ExecuteQuery)`m
basically:
The result buffer is very special ><, it seems you can have ONLY one, even if I have multiple query buffer opened.
It opens with
<C-w>J
Running :CtrlSpace hides the result window ARGH!!! WHYY
There is no way to make a mapping to create a new query buffer. :/
The tree view of the tables, schemas does not show the column names, that would be highly useful though!
The only way to see them is to select the 'columns' entry in the tree view, that opens a pre populated query that I can run
Queries & DB connections are saved globally in my ~/
It should be per project (so saved locally! and reloaded from that dir/file when starting DBUI)
It's kinda hard / weird / unintuitive to open a sql file I saved somewhere (with
:w my_file.sql
), and link it to the DB I'm connected to with DBUI 'currently'. I can use:DBUIFindBuffer
, but why?? why would I want to find the buffer in the list of special buffers for DBUI...The text was updated successfully, but these errors were encountered: