'Remove chars from the cursor to the beginning of the word.
This acts like readline\'s backward-kill-word. Any non-alphanumeric
character is considered a word delimiter.'

@cmdutils.register(instance='readline-bridge', hide=True, modes=[typ.KeyMode.command, typ.KeyMode.prompt])
def rl_backward_kill_word(self):

    widget = self._widget()
    if (widget is None):
        return
    widget.cursorWordBackward(True)
    self._deleted[widget] = widget.selectedText()
    widget.del_()
