{"version":"2.1.301","anchor":"vim-mode-exposes-iscommandpending-and-ignores-keys-when-inac","canonical_anchor":"vim-mode-exposes-iscommandpending-and-ignores-keys-when-inac","heading":"Vim mode and input history keys can be paused, and vim reports pending commands","tier":"notice","area":"Terminal UI","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301\/e\/vim-mode-exposes-iscommandpending-and-ignores-keys-when-inac","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301","markdown":"### Vim mode and input history keys can be paused, and vim reports pending commands\n\nVim mode and the up\/down history keys can now be switched off while input is inactive, and vim handles Esc-then-key sequences differently\n\n**What**\n\nTwo parts of the prompt's keyboard handling gained an `isActive` switch, so they can be turned off when the input box should not respond.\n\n- Vim mode (the option that lets you edit the prompt with Vim-style keys) now takes `isActive` and reports `isCommandPending`. This is true in NORMAL or VISUAL mode while a command is only partly typed.\n\n- In vim INSERT mode, a key sequence that matches a pattern for a late-read key is now handled as Esc followed by that key (`readAsEscapeThenKey`) and swallowed.\n\n- Input history navigation, where the up and down arrows recall earlier prompts, now also receives `isActive`.\n\n**Why**\n\nKeys should stop reaching the prompt while it is meant to be inactive. Vim users may also see Esc followed quickly by another key read more reliably in INSERT mode.\n\n- Area: Terminal UI\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}