Editor quirks
How to add PC-delete functionality
StrongED and ZAP. The chances are, you'll use one of them as your text editor, and the chances are that the fact that neither of them do PC-style delete by default will be annoying. Well, have no fear, because you can fix this! Easily! If you just want a simple app that will add the fixes in the right places, then click here to download. If, on the other hand, you want to know what's involved, read on...
StrongED:
To add this functionality to StrongED, you need to edit the default KeyList. But where is it? Neither StrongHelp nor the online manual shed any light on its whereabouts.
However, if, using StrongHelp, you open the Reference section, and then open Syntax of ModeFile file you'll see a reference to KeyList.
That's right! It's in the basemode file! Which is located in <StrongED$Dir>.Defaults.Modes.BaseMode we're after the ModeFile. NB: As this is the default file, I recommend copying it to Choices:!StrED_cfg.UserPrefs.Modes.BaseMode .
- Open this up and search for 'KeyList' . Not that one, nor the next one... in fact it's the last KeyList in the file. The comment just before it is: '#--- The main keylist.'
- Scroll down until you see the section beginning with 'Tab'.
- Here you'll find 'Copy' and 'Delete' and you should make the following changes:
- on line: 'Copy' change 'DeleteRight' to 'EndOfText'
- on line: 'Delete' change 'DeleteLeft' to 'DeleteRight'
- Save, quit StrongED and reload.
ZAP:
ZAP is slightly easier, as you can find the Keymap file from the iconbar menu: Options->Edit config->Keys.
- This opens Choices:!ZapUser.Config.Keys.UK where you'll need to make the following changes:
- on line: "DELETE &07F' change 'DELETE' to 'DELETENEXT'
- on line: 'sDELETE &01F' change 'DELETE "NEXT"' to 'DELWORDEND'
- on line: 'Copy &18B' change 'DELETENEXT' to 'CRIGHT'
- Save, then click on Options->Create & reload keys