views:

46

answers:

1

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.

A: 

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
Brian Heylin