Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jEdit Mac OS keyboard behaviour

Is there anyway to have jEdits keyboard controls behave the same way that a native Mac OS app does?

By behave I mean command+left moves the caret to the start of the line, alt+left moves to the beginning of the current word etc.

like image 375
BefittingTheorem Avatar asked Feb 19 '10 16:02

BefittingTheorem


1 Answers

First the ALT key needs to be enabled. Do this in the startup.bsh file located in:

JEDIT_HOME/Contents/Resources/Java/startup/startup.bsh

On Mac OX this would typically be:

/Applications/jEdit.app/Contents/Resources/Java/startup/startup.bsh

The following lines should be uncommented:

Debug.ALT_KEY_PRESSED_DISABLED = false;
Debug.ALTERNATIVE_DISPATCHER = false;

You can now include the ALT key in keymappings, where

C => CMD
M => ALT
Go to End of Line: C+Right  
Go to Start of Line: C+Left 
Go to Next Word: M+Right 
Go to Previous Word: M+Left 
Select Next Word: MS+Right 
Select Previous Word: MS+Left 
Select to End of Line: CS+Right 
Select to Start of Line: CS+Left
like image 122
BefittingTheorem Avatar answered Sep 30 '22 13:09

BefittingTheorem