diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 11:48:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 7a818260ff0c7fc9e2effa634cdf947fde48e043 (patch) | |
| tree | 7a5df65de94ed486de9ba7927f1e62e757613c0d | |
| parent | c3c3ef27ede2f69ef4f8c6acb10808f02ee46bb2 (diff) | |
| download | pardes-7a818260ff0c7fc9e2effa634cdf947fde48e043.tar.gz pardes-7a818260ff0c7fc9e2effa634cdf947fde48e043.zip | |
The docs say an Edit loop that finds nothing succeeds silently, as sam's does
Edit ,x/zzz/c/bar/ with no match changed nothing and succeeded, which read as a failure next to s's no substitution; sam does the same, so it is kept and said.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
| -rw-r--r-- | .agents/skills/pardes-9p/SKILL.md | 3 | ||||
| -rw-r--r-- | docs/tags.md | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/.agents/skills/pardes-9p/SKILL.md b/.agents/skills/pardes-9p/SKILL.md index e5affebe..4a9c0940 100644 --- a/.agents/skills/pardes-9p/SKILL.md +++ b/.agents/skills/pardes-9p/SKILL.md @@ -219,7 +219,8 @@ Rename everywhere, or any sam edit, is one write: `echo 'Edit ,x/foo/c/bar/' v c a i d s p = m t u` and `{ }` (commands in braces one to a line, so from exec or a tag, not a one-line ctl write). Its changes are one undo step, and one that fails changes nothing and fails the write with acme's words (`Edit: -no substitution`), logged as `err`. A block goes to the pane's `ctl`, the +no substitution`), logged as `err`; an `x` that finds nothing is no failure +(sam's), so `,x/zzz/c/bar/` with no `zzz` succeeds silently. A block goes to the pane's `ctl`, the root `ctl` (the active pane) or `exec` on one open, in one write or several (bash's `printf` writes line by line): an `Edit` line takes the lines after it until its `{` closes or its `a`/`c`/`i` text ends with `.`, and runs then. `sel` diff --git a/docs/tags.md b/docs/tags.md index d79c64b5..c2d92b9a 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -78,7 +78,9 @@ sequence with a warning, pardes refuses the Edit. In `s`, `&` in the replacement is the matched text (`\&` a plain `&`); in `c`, `a` and `i` an `&` is only an `&`, as in sam. A pattern that finds nothing says so with the pattern (`no match for regexp /nomatch/`), and an `s` on an empty dot says -`no substitution: dot is empty`. +`no substitution: dot is empty`. A loop that finds nothing is no error, as +in sam: `Edit ,x/zzz/c/bar/` with no `zzz` changes nothing and succeeds, +silent, where `,s/zzz/bar/` says `no substitution`. `Undo` and `Redo` are acme's: typed or clicked in a pane's tag, or written to its `ctl`, they step the body back and forward through its edits, as the |
