{"version":"2.1.239","anchor":"word-wise-motions-and-a-kill-ring-in-the-prompt-editor","canonical_anchor":"word-wise-motions-and-a-kill-ring-in-the-prompt-editor","heading":"Word-wise motions and a kill ring in the prompt editor","tier":"use","area":"Prompt Editor","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239\/e\/word-wise-motions-and-a-kill-ring-in-the-prompt-editor","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239","markdown":"### Word-wise motions and a kill ring in the prompt editor\n\nThe prompt editor gained word-wise moves and deletes, and killed text can now be yanked back.\n\n**What**\n\nThe prompt editor gained forward-word, backward-word, kill-word and backward-kill-word operations, and deleting to end of line now stores the removed text so it can be yanked back instead of being thrown away.\n\n**Details**\n\n- Delete-word-before and delete-WORD-before were rewritten on top of a shared `killRange` helper, as was delete-to-end-of-line.\n- Placeholder spans in the prompt are still snapped out of at both ends of a motion.\n\n**Evidence**\n\n`backwardKillWord()`\n\n- Area: Prompt Editor\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 1\/5"}