Ask Your Question
0

Command Go To Cursor

asked 2017-06-24 20:32:37 +0100

ventolinmono gravatar image

updated 2017-07-12 22:55:55 +0100

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.

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2017-06-24 20:39:14 +0100

Lupp gravatar image

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

edit flag offensive delete link more

Comments

Of course, that works! :p Thanks!

ventolinmono gravatar imageventolinmono ( 2017-06-24 23:04:39 +0100 )edit

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.

ventolinmono gravatar imageventolinmono ( 2017-07-12 22:50:41 +0100 )edit
0

answered 2017-07-12 22:55:10 +0100

ventolinmono gravatar image

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

edit flag offensive delete link more
0

answered 2017-07-13 03:36:48 +0100

librebel gravatar image

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-06-24 20:32:37 +0100

Seen: 142 times

Last updated: Jul 13 '17