summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 08:09:08 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commitf7e3441698a4621bec0d7c14eb45303753ffbead (patch)
tree14ed04f81a0fc7aa7e07a44e4b4c413b940b3901 /docs
parent72c84bd7206bba5e2323c2e7f12f2458405e800d (diff)
downloadpardes-f7e3441698a4621bec0d7c14eb45303753ffbead.tar.gz
pardes-f7e3441698a4621bec0d7c14eb45303753ffbead.zip
A rename alone does not make a pane dirty
Any rename marked the pane dirty (saved revision one back), while the guards ask only whether its text was ever edited: /index said dirty for a pane Exit let go without asking. The name is no edit now, so /index, the guards and Restore agree; Save writes under the new name all the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/fs.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/fs.md b/docs/fs.md
index bcf5dd5b..df1b128c 100644
--- a/docs/fs.md
+++ b/docs/fs.md
@@ -504,7 +504,10 @@ selection, and leaves `look` reading back empty.
`/pane/<n>/name` reads the pane's file name (a terminal's directory) and
writing it renames the buffer; a relative name resolves against the pane's
-directory. The write is the name and its newline, nothing trimmed: a blank
+directory. A name alone is no edit: the pane's `dirty` stays what its text made it
+(a renamed clean file is still 0, and nothing asks about it at Exit,
+Restore or Del, which ask only about text edited), and `Save` writes it
+under the new name all the same. The write is the name and its newline, nothing trimmed: a blank
inside a name is taken (`two words.zig`), but one at either end, or a
control character, is refused, `bad character in file name` (EINVAL), as
acme refuses a blank (xfid.c:650), rather than quietly cut off. `body` appends on write and replaces on truncating open. A