Lock, not pin: the flag that keeps the model from rewriting a node

The badge reads LOCKED, the status line and messages say lock and unlock, p's
help says what it is and that it is not P, and the cascade says a locked node
was flagged, not rewritten. Pin now means only a pane's pin. The stored flag
and the op API keep the old name, pinned, so a live library keeps its locks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 02:03:28 -05:00
1 parent edc31aac9a
commit abf79c14cc
8 files changed
+21 -18

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@ export const HELP: [string, [string, string][]][] = [
["D", "delete (no confirmation; u undoes)"],
["J K", "move down / up among siblings"],
["> <", "indent / outdent (a document's sections can be moved into another this way, or over HTTP)"],
["p", "pin or unpin: pinned nodes are never rewritten by the model"],
["p", "lock or unlock: a locked node is never rewritten by the model (your own edits lock it). Not the same as P, which pins a pane"],
["f", "on a note: cycle its form (inline · margin · inset)"],
[":", "on a node: tell the editor agent what to change"],
["u U", "undo / redo: the last edit made in this tab, in whichever document it was"],
@@ -465,7 +465,7 @@ export function handleKey(e: KeyboardEvent, hooks: KeyHooks) {
store.indent(-1);
break;
case "p":
store.togglePin();
store.toggleLock();
break;
case "f":
store.cycleForm();