
As many have probably noticed, in OmegaT it’s now possible to unlock cursor. This means that one can select and copy text anywhere in the Editor pane without using the mouse. With the unlocked cursor you simply press up or down, and the text caret will move beyond the target segment. The lock is triggered with F2. Cool! But there’s no way to make this behavior default — every time OmegaT is started, cursor is locked.
Since I prefer it to be unlocked most of the time, here’s a little workaround. Below is a little script that needs to go into scripts_folder/application_startup/
:
def gui() { editor.editor.lockCursorToInputArea = false editor.editor.updateLockInsertMessage() } return
This little snippet should be saved as a plaintext file with extension groovy
, for instance, unlock.groovy
. Next time OmegaT 4.2 or newer is started, the cursor is going to be unlocked from the get-go!