File picker: preview first 3 rows of the selected file
Open
area:data
area:tui
good first issue
- Dominant language
- Rust
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
When you launch \`xeli\` with no args, it shows a fuzzy file picker (`src/ui/file_picker.rs`). The right pane currently just lists the file path.
**Improvement**: when a CSV/TSV/JSON line is focused, read the first 3 data rows and render a tiny table preview.
**Hints**
- Use `data::loader::peek(path, n_rows)` — add this if it doesn't exist (cheap stream-read, not a full DuckDB load)
- Bail gracefully on Parquet/xlsx (just show "binary format — open to see")
- Cap preview width to the pane
Acceptance: arrow-keying through files in a directory updates the preview without lag.
Contributor guide
Assessment
This issue has not been assessed yet.