Add backward-kill-word to BTextView
|Reported by:||GeneralMaximus||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
A backward-kill-word shortcut in BTextView would be a welcome addition. The current method of killing the previous word by holding Shift, then pressing Ctrl+Left to select the word, and finally pressing Backspace is cumbersome.
Since Ctrl+Backspace is already mapped to Delete, the attached patch makes Option+Backspace kill the previous word. But there's a consistency issue here: moving between words is done using Ctrl+Left and Ctrl+Right so, logically, Ctrl+Backspace should kill the previous word. Instead, I've attached an additional patch that changes Ctrl+Left and Ctrl+Right to Option+Left and Option+Right. Now all text movement shortcuts are accessed through the Option key. I was not sure if this was a good idea, so I made a separate patch.
Description of patches:
- backward-kill-word.diff: makes Option+Backspace kill the previous word.
- backward-kill-word-and-backward-word.diff: makes Option+Backspace kill the previous word. Additionally, Option+Left Arrow and Option+Right Arrow are used to move back or forward by words. This is a change from the previous way of moving between words, which was Ctrl+Left Arrow and Ctrl+Right Arrow.