-
Notifications
You must be signed in to change notification settings - Fork 118
feat: Add configurable drawer sections with custom order #321
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
feat: Add configurable drawer sections with custom order #321
Conversation
|
|
||
| return substitute(name, '^'.db_ui#utils#slug(a:db.name).'-', '', '') | ||
| endfunction | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the code in the new render methods below is copied verbatum from the original if/elseif/endif above.
kristijanhusak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
autoload/db_ui/drawer.vim
Outdated
|
|
||
| " Default drawer sections and their order | ||
| if !exists('g:db_ui_drawer_sections') | ||
| let g:db_ui_drawer_sections = ['new_query', 'buffers', 'saved_queries', 'schemas'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the default in plugin/db_ui.vim where other defaults are. This should also fix the tests.
kristijanhusak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed the default variable value. Let's fix that and it's good to go.
|
My bad, @kristijanhusak, thanks for catching that! I've now moved (There are still 5 failing tests, but they appear to be the same ones that fail on master) |
kristijanhusak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #299 and then some.
Thank you for creating this wonderful plugin, and thanks in advance for considering my changes.