Skip to content

Omasheet v0.1.5

Choose a tag to compare

@librasteve librasteve released this 19 Oct 15:07
· 394 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.

Sequences fill a column

A computed column may now be written as a sequence, terms ... limit. The terms given start the column and the rest follow a rule, taken from the terms where none is written:

Odd      := 1, 3 ... Inf                    # 1, 3, 5, 7, …
Double   := 1, 2, 4 ... Inf                 # a constant ratio
Fib      := 0, 1, $-1 + $-2 ... Inf         # a rule of its own
Count    := 20, 15 ... 0                    # stops at its limit
Col      := "A", "B" ... Inf                # A, B, … Z, AA, AB, …
Day      := "Monday", "Tuesday" ... Inf     # round and round
Period   := "Nov-2026", "Dec-2026" ... Inf  # carries into the year
Monthly  := 2025-01-01, 2025-02-01 ... Inf  # the first of each month
MonthEnd := 2025-01-31, 2025-02-28 ... Inf  # Mar 31, Apr 30, …

$-1 is the term before this one and $-2 the one before that. Inf fills the column; any other limit stops the sequence there and leaves the rows after it empty.

The days of the week and the months of the year are known by name, in full or in three letters, in any case, and they go round: Sunday is followed by Monday. A month written with its year carries into the year instead. Any other text counts up the way letters and digits do, carrying at Z and 9.

Dates a fixed number of days apart step by days; dates on the same day of each month step by months, however many days that is, counting from the largest day given — so the end of February goes on to the end of March, not back to its 28th.

Alongside it: n.day, n.week, n.month and n.year next to a date, and the functions succ, add_months and eom. examples/sequences.omx has all of it at work.

Copy, cut and paste across the grid

Cells, rows, columns and whole sheets now copy, cut and paste as one.

  • A copy is outlined from its row numbers and column headers, a cut dashed, and Esc lets go of it before the selection.
  • Columns paste onto one column whole, and past the last they are added, named after their source with _001. Columns pasted onto others holding each other's names are renamed through spare names rather than refused.
  • A whole sheet copied onto another makes a copy under its name with _001; cut and pasted, it is moved there. Deleting a sheet asks first.
  • A copy pasted onto a smaller block is cut to its size, one cell cut onto a block fills it, and a paste is undone as one step.
  • Formula cells paste onto formula columns as their formulas, unless they differ from row to row.

Picking cells into a formula

Drag for a range and Ctrl+click for a list; Shift+Arrow picks a range and shows it as it grows, Ctrl+Arrow goes to the end, and Alt picks by row number. The cells a formula refers to are highlighted, and the formula box echoes the edit and its cursor.

A cell of a formula column stands for the column

Enter edits its formula, F2 renames it, a copy of it is its formula, and a formula pasted there becomes the column's. F2 also renames a column in its header. A cell that does not fit its column now says which column, which type and what it expected.

Numbers and functions

sum, avg, min, max and count take several vectors, blocks and values together. A Decimal is any exact number, shown cut and marked where it does not end, and a column of no declared type holding one is a Fraction column.

Rows

Rows are put in only from the grid: Ctrl+Enter on rows or one cell, not mid-edit. Enter on the last row no longer adds one. Insert rows opens with its count unselected and the cursor after it.