I have two questions.
First one is how to get properly the offset of text caret. Currently I do by using an editor: `editor.caretModel.offset`
However, it does not work properly because I must use the mouse to start it working in the first place. In addition,
sometime the offset is calculated but given by col number 0 and real col number. Here is the full offset calculation:
val offset = editor.caretModel.offset
val lineColumn = StringUtil.offsetToLineColumn(file.text, offset) -> Maybe I am wrong here
val col = lineColumn.column
val line = lineColumn.line
Second question is right now I can get changes only via typing (TypedHandlerDelegate) or via deleting (BackSpaceDelegate). I need to find a way to get changes for enter and a way to get a deleted word if it was selected.
This thing gets more complicated when I need to recieve updates for buttons like `Delete` or shortcuts like `Ctrl + Backspace`, `Ctrl + V`, `Ctrl + X`, `Ctrl + Delete`, etc.. Maybe there is a collective, better, more efficient way to receive all these updates at once and their offsets?