Skip to content

v0.13.0

Choose a tag to compare

@unixsuperhero unixsuperhero released this 27 Oct 03:30
· 396 commits to main since this release

Table cell mode is opt-in: CellSelect(); every other table selects rows as before v0.12.0.

Table cell mode is opt-in: only a table added with CellSelect() is cell-based.

Tables

  • CellSelect() (an InstanceOption for AddList) makes a table cell-based: the current column, h/l, 0/^/home, $/end, N|, g c, y (copy the cell) and z >/z </z =, with the column and widths remembered in tables.json, as v0.12.0 gave every table. AddTree ignores it.
  • Every other table selects rows again, as on v0.11.0: h/l are free for row nouns, $, ^ and 0 (without a count) run list.scroll-columns (verb guard table-scrolls), z l/z h scroll a column, no current cell is drawn, and nothing is read from or written to tables.json for it (widths a v0.12.0 cell table saved no longer stick to it). Story tables/row-select.
  • RowSelect() is a deprecated no-op; the framework's trees, ? help modal and Settings page no longer pass it.
  • Y (copy the row's cells joined by tabs) answers on every table (verb guard list-table), y only on a cell-mode table.
  • V answers on every table with marks: a visual range over the marks, cell-mode or not. esc ends it through list.end-visual (verb and row guard list-visual), so the row no longer hides an outer esc hint, such as a modal's esc modal.pop, over a table.
  • The width keys z >/z </z = need a current column, so they answer on cell-mode tables only; List.SetColumnWidth still sets a width on any table.
  • list.column, list.choose-column and list.resize-column refuse a row-select table ("not a cell table"); list.yank {what: cell} too.
  • cli: catalog tables select rows, so the groups rail's h back row (guard list-first-column) answers at once on them. Story catalog/groups-table-h.

o-story

  • A story list takes cellSelect (ListSpec.CellSelect); the cell stories set it, and the goldens of tables that select rows read R| again.