feature: connection colors #91
Labels
No labels
CI/CD
UI/UX
autorelease: pending
bug
docs
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
size
L
size
M
size
S
size
XL
size
XS
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/dadbod-ui.nvim#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Did you check the docs?
Is your feature request related to a problem? Please describe.
Sometimes i accidentally run a query in prod, and i meant to run in the test environment.
Right now there is nothing that screams at you telling you you are on a sensitive database
Describe the solution you'd like
Let a connection or a group carry a color, and paint it everywhere the connection is named.
The winbar is the good surface here -
show_buffer_connectionalready rendersgroup/nameat the top of every query buffer, so the color costs us nothing and sits where you're already looking when you type.This is a hint, not a guarantee. It pairs with read-only connections and dangerous statement detection, it doesn't replace either.
Acceptance Criteria
connections.jsonDescribe alternatives/other solutions you've considered
DBeaver's connection types (DEV/TEST/PROD). The color rides along with a whole bag of other behavior. feature includes autocommit defaults, confirm-on-execute, idle timeouts.
That's more than we want (imo), and the confirming half is its own issue. We just want the color, and we already have groups, so a type is different concept that we can add later on.
Highlight group names instead of hex?
More neovim-native, and it'd inherit from the colorscheme. Going with hex because it's self-contained in
connections.jsonand doesn't break when someone swaps themes. Maybe we do both??