Skip to content
isenePublic

About

AI-native TUI spreadsheet — view/edit csv/xlsx/ods, formula engine, Claude-powered editing. Part of the Fe2O3 Rust terminal suite.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid

Version Rust License Platform Stay Amazing

An AI-native terminal spreadsheet. Open a CSV or workbook, navigate and edit like a spreadsheet, write formulas, or just tell Claude what to change. A small, fast, single binary — part of the Fe2O3 Rust terminal suite.


The idea

A spreadsheet that stays out of your way and lets the AI do the tedious parts. Type values and formulas directly, or hit I and say "add a Total row that sums each column" — grid hands the sheet to Claude and applies what comes back. No menus, no ribbons: keyboard-driven, instant, scriptable.

Screenshot

grid

Features

  • Formats — reads/writes CSV, reads xlsx/ods (via calamine) and writes xlsx (via rust_xlsxwriter), preserving formulas and their computed values.
  • Formula engine — hand-rolled, no spreadsheet runtime: arithmetic, ranges (A1:B3), comparisons, & concatenation, and ~25 functions (SUM, AVERAGE, MIN/MAX, COUNT, IF, AND/OR, ROUND, CONCAT, VLOOKUP, …). Whole-sheet recalc with cycle detection (#CYCLE).
  • AI editing — I → describe a change in plain English; Claude rewrites the sheet, formulas included.
  • Range selection — v starts a rectangular selection; colouring, clearing colour (D) and clearing content all apply to the whole block.
  • Cell colours — true-colour (24-bit) foreground/background (C) via the prism picker (or a #rrggbb/name prompt); persists to xlsx natively and to CSV via a .gcolors sidecar.
  • Copy and paste: y copies the cell or the selection, p pastes it at the cursor. A formula follows its new place, and a $ pins a column or a row ($B$1). One copied cell fills a whole selection.
  • The system clipboard: y also copies what the cells show, for other programs. Text pasted from another program lands in the cells from the cursor on, a tab between cells.
  • Sort: o sorts the rows by the column the cursor is in, O the other way round. Row 1 stays as the header. With a selection, only its rows are sorted.
  • Rows and columns: + inserts and - deletes, then r for rows or c for columns. Formulas follow the cells they point at.
  • Charts: P draws the selection as bars or lines. Text beside the numbers names the bars, and text above them names each line.
  • Undo — every edit, clear, colour and AI change is undoable (u).
  • Multi-sheet — Tab cycles sheets in a workbook.
  • Dates — Excel date serials shown as readable YYYY-MM-DD.
  • Tiny binary, blocking input — zero idle CPU.

Install

# From a release (Linux/macOS, x86_64/aarch64)
chmod +x grid-* && sudo cp grid-linux-x86_64 /usr/local/bin/grid

# Or build from source (needs the sibling crust and plot crates alongside)
git clone https://github.com/isene/crust
git clone https://github.com/isene/plot
git clone https://github.com/isene/grid
cd grid && cargo build --release

Usage

grid budget.csv      # open a file
grid sheet.xlsx      # open a workbook (Tab cycles sheets)
grid new.csv         # start a fresh sheet
grid                 # a blank sheet, named when you first save

Keys

Key Action
h j k l / arrows move
g G first / last row
0 $ first / last column
PgUp PgDn page
Enter i edit cell
= start a formula
I AI edit (Claude)
Ctrl+A a full Claude session about the sheet, as in every Fe₂O₃ app
v start / stop rectangular selection
y p copy the cell or selection / paste it at the cursor
o O sort the rows by this column / the other way round
+ - insert / delete, then r for rows or c for columns
P chart the selection, or the column the cursor is in
C set cell / selection colour (prism)
D clear cell / selection colour
u undo
d Del clear cell / selection content
Tab S-Tab next / previous sheet
s save
? help
q / Q quit / quit without saving

Formulas

=A1+B2*2, ranges =SUM(A1:A10), text =A1&" "&B1, logic =IF(C1>0,"ok","no"), and: SUM AVERAGE MIN MAX COUNT COUNTA PRODUCT IF AND OR NOT ROUND ABS INT SQRT MOD POWER CONCAT LEN LEFT RIGHT MID UPPER LOWER TRIM VLOOKUP.

A pasted formula points the same way from its new cell: =B2+C2 copied one row down reads =B3+C3. A $ keeps a column or a row where it is: =B2*$F$1. A formula that pointed at a deleted row or column shows #REF.

Part of Fe2O3

grid is one tool in the Fe2O3 suite of fast Rust terminal apps. It builds on crust (the TUI foundation), draws its charts with plot, and pairs with viewer, which launches grid for spreadsheet files.

License

Public domain (Unlicense).

About

AI-native TUI spreadsheet — view/edit csv/xlsx/ods, formula engine, Claude-powered editing. Part of the Fe2O3 Rust terminal suite.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages