Colour grid values by type

Aperta
#367 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement roadmap
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 :set and the settings screen.
  • The colours are theme tokens, so custom themes can change them; the terminal theme 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.
Lingua principale
Rust
Stelle
166
Fork
8
Merge medio
4h 24m
PR unite (30g)
291

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DokaDev/datarig

Tutte le issue di DokaDev/datarig

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.