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

Allow configuration for starting with expanded selected lists #75

Closed
przepompownia opened this issue Dec 1, 2020 · 2 comments
Closed

Comments

@przepompownia
Copy link

przepompownia commented Dec 1, 2020

I would like to have settings (per project) that start DBUI with some items expanded.

Please see #74 (as an example for expanding table list for selected database) how we could implement it.

In the next step I would like to have cursor placed at the top of tables list.

@kristijanhusak
Copy link
Owner

Custom autocmd is fired when DBUI is opened. You can use something like this to achieve what you want.

autocmd User DBUIOpened call s:open_db()

function! s:open_db()
  "Find db.
  call search('dev')
  "Open db
  norm o
  "Find tables
  call search('Tables')
  "Open tables
  norm o
endfunction

@przepompownia
Copy link
Author

This four-line simulation of manual actions has enoughly simple expression to close the mentioned PR ;-)

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