diff options
| author | user <user@clank> | 2026-08-30 16:58:43 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-30 16:58:43 +0200 |
| commit | f75bd436d03384642fab4176d36f74d410ece76d (patch) | |
| tree | 6adf8022f62d46db5fdc2122956f59b8fd69cae1 | |
| parent | web: one knob to hurry every cast on the page (diff) | |
| download | slosh-f75bd436d03384642fab4176d36f74d410ece76d.tar.gz slosh-f75bd436d03384642fab4176d36f74d410ece76d.tar.xz slosh-f75bd436d03384642fab4176d36f74d410ece76d.zip | |
web: the config cast turns the layout before it edits
C-a e arrived as a strip along the bottom, and a 66-line config in a
twelve-row strip reads like a keyhole. A quarter turn (C-a Space)
right after it opens makes the editor a column with the height the
file deserves -- and shows off the rotate while at it.
The column brought back vim's hit-enter stall (the file-info message
wraps at 49 columns), so the recording's EDITOR gains the same
shortmess the webdemo's vimrc already carries.
| -rw-r--r-- | web/recordings/demos/config.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/web/recordings/demos/config.py b/web/recordings/demos/config.py index 760ca59..2f9081f 100644 --- a/web/recordings/demos/config.py +++ b/web/recordings/demos/config.py @@ -15,7 +15,13 @@ import tempfile sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from castgen import THEME, Recorder, out_path -ENV = {"PS1": "$ ", "ENV": "/dev/null", "EDITOR": "vim -u NONE -i NONE"} +# shortmess: the rotated editor pane is a column, and vim's file-info +# message wraps there into a hit-enter prompt mid-demo. F drops it. +ENV = { + "PS1": "$ ", + "ENV": "/dev/null", + "EDITOR": 'vim -u NONE -i NONE -c "set shortmess+=atoOF"', +} work = tempfile.mkdtemp(prefix="slosh-demo-") cfg = os.path.join(work, "config.kdl") @@ -49,6 +55,11 @@ r.key("e", dt=0.5) r.until_text("frame_focus", dt=0.6, timeout_ms=5000) r.pause(1.0) +# C-a Space: a quarter turn. The editor arrived as a strip along the +# bottom; turned, it is a column with the height the file deserves. +r.key(" ", dt=0.5) +r.pause(1.0) + # Pink to green: find the focus colour, change the word, save. r.type("/ff5fd7") r.enter(dt=0.4) |
