diogin:
--------------------------------------------------------------------------------
pspad:
--------------------------------------------------------------------------------
No
--------------------------------------------------------------------------------
Bad news for me :(
I mainly use Ctrl+H, Ctrl+J, Ctrl+K, Ctrl+L to move caret, and occasionally use
Left, Down, Up, Right key to perform some select operation.
Is it possible to add this feature to PSPad? Thanks for your effort on the great
editor :)
--------------------------------------------------------------------------------
If you have the PSPad scripting active, you might add this shortcuts via WSH
scripting (Settings: System integration: WSH scripting).
Try e.g. the following code - save the text as a js file in
...PSPad\Script\JScript
and reload the scripts (scripts menu).
Note, that you need to remove the shortcuts used by default for other functions
(settings: Keymap)
If you needed to call some other editor comands this way, check the
...\PSPad\Script\readme.rtf file for a list.
hth
vbr
cite:
--------------------------------------------------------------------------------
////// ... PSPad\Script\JScript\cursorMovement.js //////
var module_name = "cursorMovement";
var module_ver = "1";
function resendCommand(comandString){
if (editorsCount()<1){return;}
var actEd = newEditor();
actEd.assignActiveEditor();
actEd.command(comandString);
}
function curLeft(){resendCommand("ecLeft");}
function curRight(){resendCommand("ecRight");}
function curUp(){resendCommand("ecUp");}
function curDown(){resendCommand("ecDown");}
function Init(){
addMenuItem("left", "cursor movement", "curLeft","Ctrl+H");
addMenuItem("right", "cursor movement", "curRight","Ctrl+L");
addMenuItem("up", "cursor movement", "curUp","Ctrl+K");
addMenuItem("down", "cursor movement", "curDown","Ctrl+J");
}
--------------------------------------------------------------------------------
--
<http://forum.pspad.com/read.php?2,50639,50643>
PSPad freeware editor http://www.pspad.com