Colour grid values by type
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start by locating the result-grid cell rendering, theme-token definitions, and the settings handling for [grid] and :set; the issue does not name files or tests. Trace how cell types, cursor and selection colors, and stripe colors are currently chosen, then check the terminal theme against real screens. Done means the requested type colors and off setting work, text and NULL retain their stated behavior, and numbers remain right-aligned.
Written by the indexing model from the issue text.
Description
Problem
In the result grid every value is drawn in the same colour except NULL. Numbers, dates and text look alike, so scanning a wide result for the kind of value takes longer than it needs to.
Proposal
Colour cell values by their type, with a setting to turn it off:
| Kind | Examples | Colour |
|---|---|---|
| Numbers | integer, numeric, float | number colour |
| Date and time | date, timestamp, interval | date colour, different from text |
| Boolean | true, false | boolean colour |
| Structured | JSON, arrays, binary, UUID | a muted colour of its own |
| NULL | NULL | as today (dim, italic) |
| Text | varchar, text, enum | the normal text colour |
- Text keeps the normal colour, since most values are text; only the other kinds stand out.
- Setting
[grid] cell_colors = "type"(default) or"off", also in:setand the settings screen. - The colours are theme tokens, so custom themes can change them; the
terminaltheme picks from the 16 terminal colours. - Check against the cursor, selection and stripe colours with real screens before it ships.
- Colour is never the only cue: numbers stay right-aligned.
- Dominant language
- Rust
- Stars
- 166
- Forks
- 8
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 291
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days