Closed przepompownia closed 3 years ago
Independently of position of such window it would be good to allow simply close it by some mapping, for example, <Plug>(DBUI_Close_notifications)
.
It should not overlap the results but instead be above them. I'll check. Clicking on it (focusing the notification) should immediately hide it.
Indeed, clicking closes it, but keyboard action (I have Esc
for float windows coming from CoC) would be more convenient.
I have no good idea where such window could be placed when the result window have no free space. Sometimes there is a lot of empty lines at the bottom of the result window.
This should be fixed now.
Notification should appear above the out window, not in the bottom right corner.
Also, I added a command :DBUIHideNotifications
that should hide any notifications that are currently visible.
Thanks for acdf245, The new command (or configuration that forces using echo) can be still needed despite it.
Please test execute a query, go the dbout window, resize +10
on it and execute the query again.
I have not found how to configure (percent or line) height of the dbout window.
Ah, yeah, that case is not considered. I take &previewheight
to figure out the position. I'll take a look.
I just pushed a fix. Output window height is now properly calculated, so notification should be above it even when window is resized.
Also, I added an option g:db_ui_force_echo_notifications
which will echo all notifications instead of showing them in popup, when the setting is enabled (disabled by default).
Notifications now are displayed on the drawer space. g:db_ui_force_echo_notifications
works as expected. Thanks! :tada:
Right after executing query I have to wait 7 second (hardcoded
let s:delay = 7000
) until notification message disappears:I found that the notification API allows using echo instead
but it seems to be not used by
s:query.execute_query(...)
.