Expand description
The workspace value and small map helpers.
The whole workspace is one SIM value: a map of panes, the focused pane, the
experience mode, the session and history refs, and palette state. It is
built from kernel Expr only, so it round-trips through any general codec
and can be saved, shared, versioned, diffed, and restored as data. Layout is
data; restoring a session is decoding a value.
Constants§
- WORKSPACE_
CLASS - The workspace class symbol carried in the
classfield.
Functions§
- as_int
- Read a number value’s canonical literal as
i64. - focus
- The focused pane id, if any.
- get
- Look up an unqualified-keyed field by name.
- int
- An
i64-domain number value. - key
- An unqualified symbol value:
Expr::Symbol(Symbol::new(name)). - map
- A map value from string-keyed entries (keys become unqualified symbols).
- mode
- The workspace mode symbol, if set.
- new_
workspace - A fresh, empty workspace in
modewith no panes. - panes
- The list of pane records.
- set
- Set (or insert) an unqualified-keyed field, preserving sibling keys, in a new map value.
- with_
panes - Set the panes list.