Skip to content

v0.1.7

Choose a tag to compare

@librasteve librasteve released this 09 Nov 09:12
· 202 commits to main since this release

Omasheet is a text-native spreadsheet: plain-text .omx files of named, typed sheets, with formulas in OMX and exact arithmetic.

Install or update

On Omarchy and Arch Linux, x86_64 or aarch64:

curl -fsSL https://raw.githubusercontent.com/librasteve/omasheet/main/install.sh | bash

If pacman cannot satisfy a dependency on qt6, run sudo pacman -Syu and then the line above again. Install from source to run on macOS.

Big files open at once

A CSV, JSON or XLSX over 4 MB, and a Parquet file of more than 10,000 rows, is now read as a table instead of being imported as text. A 1.1 GB CSV of 20 million rows opens at once.

  • The app shows the first 1,000 rows straight away while a Parquet copy is written in the background, and a marker at the foot of the grid says "Showing the first N rows — loading the rest…" until it is done. The copies are kept in a cache that is held to a bounded size.
  • Only the rows on the screen are formatted, and only the columns a formula names are read. A head(5) reads the first row group, not the file, and len of a selection counts rows without reading the column. An aggregate over a selection (Passengers[; Pclass == 1].Fare.sum()) is one Polars pass.
  • A million-row table opens in about 0.4 s, and adding a formula column to it takes about the same.
  • Adding a formula column to a big table keeps the file's columns, and a formula that fails in every row lists a few hundred problems and then "and N more like these" instead of millions (the old list made a snapshot of hundreds of megabytes, which crashed the app).
  • Copy into the document, on a table's tab menu, copies a table's rows into the file as a sheet of its own to edit. It refuses a table with formula columns, and one too big to hold.
  • A CSV is read with its own literals: exact decimals, percent columns (12.5%), lowercase hex.

Sorting and filtering a column

The circle on a column's header opens a popup with Sort Ascending, Sort Descending and a filter. A filter is an expression in which * is the cell:

* >= 3
*.starts_with('A'..'C')
*.to_lowercase().contains('an')
*.year == 2025 and *.weekday >= 6
  • The box is checked as you type and turns red, with the reason on hover, while the expression is wrong.
  • On a table the filter is one Polars pass over the column, so it opens on millions of rows as fast as on ten. A filter and a sort are a view on the sheet: a save and an export still hold every row.

Types

The numeric types form a hierarchy of increasingly expressive number systems:

ℤ ⊂ ℚ ⊂ ℝ ⊂ ℂ

Where:

  • Integer (ℤ) — integers
  • Decimal (ℚ) — rational numbers
  • Float (ℝ) — real numbers (approximately represented)
  • Complex (ℂ) — complex numbers

For any binary operation, the result takes the least common number system containing both operands:

A op B ∈ max(A, B)

Note: This is a conceptual mathematical model. Machine integers, Decimal128 and Float64 are finite-precision representations, rather than the mathematical sets themselves.

For example:

  • Integer + Decimal → Decimal
  • Decimal * Float → Float
  • Float + Complex → Complex

Each type may have multiple representations:

Type Literal Representations
Integer 1 Hex 0xff, Octal 0o17, Binary 0b101
Decimal 1.0 Fraction 1/7, Mixed fraction 2 3/4, Percent 14.29%
Float 1e0 -
Complex 3+4i -
  • Same representation: The representation is preserved. Hex + Hex stays Hex; Fraction + Fraction stays Fraction.
  • Different representations of the same type: The result uses the plain type. Hex + Binary becomes Integer; Fraction + Percent becomes Decimal.
  • Different types: The more infectious type wins, and the result uses its plain representation. Fraction × Integer becomes Decimal.

Additional rules:

  • A power with a non-whole exponent, such as 2 ** 0.5, produces a Float.
  • Functions such as trigonometric, exponential or logarithmic produce Floats.
  • An operation involving String type produces Any.
  • Complex functions are re, im, conj and arg, and abs, sqrt, exp and ln accept one.
  • Complex is written to Parquet as a struct of two Float64 fields, re and im.
  • Datetimes with a time zone, a declared time zone on a column, and Parquet durations and widths are read and written.
  • A Decimal that overflows its 38 digits is caught.

In the app

  • Tabs can be dragged to reorder, and the last file opens when the app starts.
  • Constants can be deleted.
  • The grid is quicker to write to, and menus and hover hints are tidied.

Packaging

A recipe for the Omarchy package repository is in pkgbuild/omarchy-pkgs/omasheet.

Also

  • docs/ (format, expressions, app, interop), the README and the omasheet skill are up to date with all of the above.
  • The release build uses a smaller, faster profile.