Repository navigation
v0.10.0 - autocomplete that knows your data
Autocomplete that knows your data, not just your columns.
Ghost text
From the first keystroke, the rest of what you are typing appears in dim text ahead of the cursor. Right-arrow (or Ctrl-E) takes it; keep typing to ignore it.
kenze > f -> f[ilter]
kenze > filter ci -> filter ci[ty]
kenze > load data/sal -> load data/sal[es_2026.csv]
kenze > set str -> set str[ict-csv]
kenze > filter city = 'L -> filter city = 'L[ondon]
Commands, column names, settings, cast types, file paths — and the real values in your data. It keeps up as you backspace, and it fires before you type the quotes too (filter city = Lon), because the shell already repairs that shape into valid SQL on Enter.
Value autocomplete
Values are the part kenze has to read your file to know, so it offers them two ways. Ghost text answers "what am I typing?"; TAB answers "what are my options?", with the exact row count beside each value:
kenze > filter city = '<TAB> -> London 600 rows
Paris 300 rows
Tokyo 100 rows
This is the point at which "no SQL required" stops being a claim about syntax and becomes a claim about knowledge: you no longer have to know what is in the file to filter on it.
Four constraints shape it, because a feature like this is only as good as its worst moment:
- The column is read once, on a background thread, and a longer prefix is answered from memory. Reading a column is a real query; running one per keystroke would lock the prompt on a large file.
- The values follow your pipeline, not the file. After
filter country = 'FR', the values offered forcityare the ones that survive that step — anything else would be a confident lie about data you have already changed. - A high-cardinality column asks for a letter rather than refusing. An id column with four million values is useless as a list and perfectly useful as "the ones starting with
u", which is how you would look for it anyway. - Ghost text never finishes a number. A half-typed word is obviously unfinished, so completing
LtoLondoncan only help.id = 1is already complete and valid, and quietly extending it to10would change what you asked for while looking like it merely finished it. TAB still lists numeric values, because there you can see what you are choosing.
The counts shown are exact. The only estimate involved is the distinct-count used to decide how to respond, and it is never presented as a fact.
validate --scaffold
Write the schema JSON for a file you already trust, instead of hand-writing it:
kenze validate sales.csv --scaffold schema.json
Every column is recorded with its real type, and every column with no nulls today is listed under not_null — a measured fact about this file, offered as a starting point to edit rather than a claim about what the data means. You could not use validate at all without a schema, and writing JSON by hand is exactly the friction kenze exists to remove.
Fixed
- Ghost text survives a backspace. prompt_toolkit only asks the suggester after text is inserted, so deleting a character left the line bare until you typed a new one — which is precisely when you want the suggestion back.
- The right-arrow accepts a suggestion through a closing quote. prompt_toolkit only accepts one when the cursor is at the very end of the line, but the auto-closing quotes added in 0.9.5 always leave a
'after it, so the two features silently cancelled each other out. - The pipeline's SQL is no longer rebuilt on every keystroke. Building it runs a
DESCRIBE, which on a large remote CSV means re-sniffing the file over the network. validateexplains the schema argument instead of leakingExpecting value: line 1 column 1 (char 0)when handed a data file, and the shell accepts the--schemaspelling too.
Full notes in CHANGELOG.md · the shell guide is SHELL.md.