Command Go To Cursor

Hi

Is there a command or shortcut to go where the cursor is (jump to) if the viewer is somewhere else like on another page.
This is very useful when editing large documents and jumping between pages.

Why would moving the cursor one step to the left or to the right (by hitting the respective key) not work for you?

Of course, that works! :stuck_out_tongue: Thanks!

I recently found out that this method doesn’t work when searching for text anywhere on the document, because the cursor moves to the text search result and there is no way of going back where you left.

No other answers. Can this be promoted to a feature request?

Hello @ventolinmono,

You could run the following macro:

Sub GotoViewCursor()
REM Jump towards the current cursor position.
	Dim oCursor As Object
	oCursor = ThisComponent.CurrentController.getViewCursor()
	oCursor.goLeft( 0, Not oCursor.isCollapsed() )
End Sub

you could also connect a keyboard shortcut and/or a custom Toolbar button to run this macro.