Hi,
Is there any function in the Plugin API that returns the current position of the cursor in the current view?
# get selected regions as RegionSet
sels = view.sel()
# get 1st cursor as Region
cursor1 = sels[0]
# startPos, endPos = cursor1.begin(), cursor1.end()Users browsing this forum: Alexa [Bot] and 3 guests