pub enum ReadonlyReason {
Filesystem,
Command,
RemoteAuthority,
Container,
GitSurface,
Output,
DirectoryListing,
DirectoryOperation,
CollectionProjection,
RecoveryCheckpoint,
OutsideWorkspace,
}Expand description
Why a buffer refuses edits (0056 AR14): the typed owner :explain
renders, recorded at the site that actually imposed the policy — never
a generic hint. None alongside readonly is reserved for tests that
poke the mutation guard directly.
Variants§
Filesystem
The filesystem reports the file not writable.
Command
:set ro or :view.
RemoteAuthority
A remote snapshot without write authority (:remote edit grants it).
Container
Container bytes have no local write path (0037 DC1b).
GitSurface
A git memory surface — content derived from history.
Output
Transient named output (help, :!, the undo browser, :explain).
DirectoryListing
A directory listing without an editable filename draft.
DirectoryOperation
A directory operation is applying or reloading.
CollectionProjection
A stale collection whose projection failed.
RecoveryCheckpoint
The recovery checkpoint surface.
OutsideWorkspace
Navigation landed outside the workspace root.