# `edit`: Editor-independent text actions and background Markdown facts ```{py:currentmodule} myform.edit ``` Use find_window to read the caret's local root list, table or block. Pass its text and absolute offset to act, together with the caller's cached file-level Precedent and inert context. A host with the full buffer in memory can let act find that window. If preceding lines leave list ownership ambiguous, pass an editor-confirmed root slice. Scan document facts after edits, away from the typing path. TYPING_ACTIONS lists keys that can delegate to the editor. ACTIONS also includes explicit commands with status messages for refusals. Apply Result.edits in reverse order in one undo step. Install the new selections and any snippet fields after applying the edits. None delegates the key to the host. A result carrying only a message is a refusal. ```{eval-rst} .. automodule:: myform.edit :members: :imported-members: ```