From 28c70cabb6ceb7e5fecfd74f6984f5a995269f01 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 24 Aug 2026 23:00:52 -0300 Subject: builtins + config: Save reaches every pane holding text of its own, and takes a path argument --- docs/design.typ | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'docs/design.typ') diff --git a/docs/design.typ b/docs/design.typ index 2a60c088..0b545bae 100644 --- a/docs/design.typ +++ b/docs/design.typ @@ -105,7 +105,8 @@ layout is committed immediately; tracks are finite presentation data.) *Effect* (out, queued): `spawn{pane, cwd}`, `write{pane, bytes}`, `resize_pty{pane, cols, rows}`, `open_link`, -`save_file{pane}`, `write_dump`, `set_clipboard`, `read_clipboard`, `lsp`, +`save_file{pane}`, `save_text{pane, serial, path}`, `write_dump`, +`set_clipboard`, `read_clipboard`, `lsp`, `pipe`, `watch`, `quit`. The core never performs IO for any of these; it asks — and four of the asks have an answer coming back: `read_clipboard` returns an ordinary `paste` event (or @@ -429,8 +430,11 @@ cannot clobber what the desktop was holding. A paste from an outer terminal arrives bracketed, as one `paste` event. *Tag.* Live prefix (mode indicator, cwd or path) + editable tail with the -full modal editor; defaults `New Del` / `Save New Del`, while terminals use -`New Del Filter`, with `*` after an unsaved file's name; an image tag reports +full modal editor. Save leads the tail of every pane holding text of its own: +`Save New Newtty Del` for a file or an output buffer, +`Save New Newtty Del Filter` for a terminal, and the plain `New Newtty Del` +for an image or a PDF, with `*` after an unsaved file's name; an image tag +reports `img petscii: palette: ascii: ` before the ordinary tail (its renderer toggles are builtins under `SPC t p/l/a`). Topbar: -- cgit v1.3