Is there a method to return the line number from where the cursor is positioned?
let currentRow = editor.lineTextForBufferRow (//editor.getRowOfCursorsPlacement()?);
I might’ve missed it or maybe it doesn’t exist and there is another way to do this?
I also am looking for a simple way to replace the current line of text with a given string. Is
TextEditor::setTextInBufferRange() the best way? Is there a method without having to specify a buffer range?
I’m currently calling
TextEditor.insertText (currentRowString);, but this produces some issues I don’t really want to work around.