Not sure how to call them correctly, but I mean the column position in a row which respects tabs. Please see the following
Lets assume the same cursor position for all 3 rows. For the first row editor.getCursorBufferPosition().column returns 9, for the second row it returns 7 and for the third row it returns 6. Which is of course ok given my tab width of 4 characters. But this makes it quite hard to compute/position the cursor correctly. Lets assume the cursor position on the first row is after the 6. So my current cursor column is 7. Now in a package I want to set the cursor position to the same vertical column in the next row. editor.setCursorPosition([2,7]) would set the cursor in row 2 after the 8, but I would like to have the cursor after the 5 (or in front of the 8 - doesn’t matter)
Of course I could parse each row before setting the cursor position and compute the (approximately) correct column position, but is there a more convenient way or maybe already an API function? I couldn’t find anything in this scope.