tui.store.set
tui.store.set PAGE ID FIELD VALUE
Stores one field of a widget or pane in the page-state store.
Parameters
PAGE: the page file’s basename, e.g.workspace.xml.ID: widget or pane id (a|or%in it is escaped, so ids never collide).FIELD:value,cursor,scroll,sel,collapsedorsize.VALUE: the text to keep.
Notes
- The store is one associative array,
_TUI_STORE["PAGE|ID|FIELD"], kept for the session. Pages fill it themselves whenkeep_value,keep_collapsed,keep_sizeorkeep_stateis set; call this to preload or edit state. It changes memory only; the disk file (persist="disk") is written from the live widgets when a page is left, seetui.store.flush.
See also: tui.store.get, tui.page.reset
