From 6a43880a7ef6899f0d66c1b0a63a7e7b5610236a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 3 Aug 2026 00:32:11 -0300 Subject: pipe selections through shell commands --- test/snapshots/pipe.golden | 39 +++++++++++++++++++++++++++++++++++++++ test/snapshots/pipe.snap | 16 ++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 test/snapshots/pipe.golden create mode 100644 test/snapshots/pipe.snap (limited to 'test/snapshots') diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden new file mode 100644 index 00000000..3748c33a --- /dev/null +++ b/test/snapshots/pipe.golden @@ -0,0 +1,39 @@ +== snap prompt grid=180x12 cursor=61,1 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/pipe/cwd/pipe.txt Save New Del |tr a-z A-Z /tmp/pardes-snap/pipe/cwd New Del +| 1 alpha beta +| 2 gamma delta pipe.txt +| +| +| +| +| +| +| +| +== snap filtered grid=180x12 cursor=17,2 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/pipe/cwd/pipe.txt Save New Del /tmp/pardes-snap/pipe/cwd New Del +| 1 ALPHA BETA +| 2 gamma delta pipe.txt +| +| +| +| +| +| +| +| +== snap undone grid=180x12 cursor=17,2 +|New Newcol Find Grep Help Tutor Dump NextColor Debug Kill +| /tmp/pardes-snap/pipe/cwd/pipe.txt Save New Del /tmp/pardes-snap/pipe/cwd New Del +| 1 alpha beta +| 2 gamma delta pipe.txt +| +| +| +| +| +| +| +| diff --git a/test/snapshots/pipe.snap b/test/snapshots/pipe.snap new file mode 100644 index 00000000..421f9177 --- /dev/null +++ b/test/snapshots/pipe.snap @@ -0,0 +1,16 @@ +# `|`: visible tag prompt, native async shell filter, and one-step undo. +file pipe.txt alpha beta\ngamma delta +start 12 180 pipe.txt +wait 8000 alpha beta +stable 700 20000 +key x | +text tr a-z A-Z +stable 300 5000 +snap prompt +key enter +wait 8000 ALPHA BETA +stable 500 8000 +snap filtered +key u +stable 400 5000 +snap undone -- cgit v1.3