'Kill the text on the current line from the cursor backward'

def kill_line_start(self):

    cursor = self.textCursor()
    cursor.clearSelection()
    cursor.movePosition(QTextCursor.StartOfBlock, QTextCursor.KeepAnchor)
    self._kill_ring.kill_cursor(cursor)
    self.setTextCursor(cursor)
