fb16 - 2012-05-28

Hello,

I just want to share a Python script which serves to go to the current caret position in document.

Say we lost sight of the caret in document: where is the caret now?

I know, it's something elementary, sorry, but I don't know a word of Python and it could be of some help to someone who doesn't know Python like me.

You may want to save it as "Go to Caret Position.py" in "…\Program Files (x86)\Notepad++\plugins\PythonScript\scripts\gotoCaretPosition\".

Regards

carPos = editor.getCurrentPos()
editor.gotoPos( carPos )