diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 23:30:36 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | aae6fc630d9d77de9ad975414d003a55d5b9d1e3 (patch) | |
| tree | f75bad53a8538f0bff15bf9a6e58b23738f60df2 /docs/fs.md | |
| parent | d321916267fc4f0f2d82fbe1fd0d37292d24456b (diff) | |
| download | pardes-aae6fc630d9d77de9ad975414d003a55d5b9d1e3.tar.gz pardes-aae6fc630d9d77de9ad975414d003a55d5b9d1e3.zip | |
A truncating write to tag drops the one newline that ends it
`echo X > tag` stored X and a trailing newline, which drew an empty tag row.
After a truncation the newline ending each write is held back until more
text follows or the open is released, so the one ending the whole of it is
dropped and any other stays; `>>` keeps what it is given.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/fs.md')
| -rw-r--r-- | docs/fs.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -505,7 +505,9 @@ then the text you may edit. A write appends to that text, newlines included, and a tag with more than one line takes a row per line on screen; truncating `tag` clears it, as acme's `cleartag` does -- the default words (`Del`, `Put` and the rest) with it, since they are that text until -you edit it, so `echo Make > tag` leaves only `Make`; append with `>>` to +you edit it, so `echo Make > tag` leaves only `Make` -- a truncating write +drops the one newline that ends what it wrote, which would draw an empty +row, and keeps any other; append with `>>` to keep them, with `printf ' Make' >> tag`: `echo` ends its word with a newline, which starts a new line of the tag. The clearing is an edit of the tag like a typed one and its undo history is kept: `u` in the tag brings back the text it cleared, words |
