VCode home

Escape twice to clear the composer

Agents: claude, codex, opencode · On: desktop

Press Escape twice in a row, with nothing else for the key to do, and the composer empties. Attachments stay where they are.

Why you would use it

You have half a message written, changed your mind, and the box is four lines deep. Selecting all of it and deleting it is three keys and a chord; two Escapes is the same press twice.

How to use it

  1. Put the caret in the box (#draft) and type.

    The composer holding a half-written message, the send button lit.

  2. Press Escape. If it has something else to do it does that instead — closes the slash menu or a sheet, or stops the running turn — and that press is spent.

  3. Press Escape again, within 700ms of one that did nothing else. The box empties.

    The same box, empty, with the placeholder back.

What you see

Options and settings

Option Default What it changes
pair window 700 ms longer than this between the two presses and they are two separate Escapes

ESCAPE_CLEAR_GAP_MS in public/editing.js. There is no UI for it.

Limits and known gaps