Editor quirks: Difference between revisions

From RISC OS
Jump to navigationJump to search
Line 10: Line 10:
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.
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 the Syntax of ModeFile file you'll see a reference to KeyList.
However, if, using StrongHelp, you open the Reference section, and then open the Syntax of ModeFile page you will see a reference to KeyList.


The KeyList is in the file called ModeFile located in <StrongED$Dir>.Defaults.Modes.BaseMode.
The KeyList you need is in the file called ModeFile located in <StrongED$Dir>.Defaults.Modes.BaseMode.
NB: I recommend copying it to Choices:!StrED_cfg.UserPrefs.Modes.BaseMode .
NB: I recommend copying this file 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.'
#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'.
#Scroll down until you see the section beginning with 'Tab'.
#Here you'll find 'Copy' and 'Delete' and you should make the following changes:
#Here you will find 'Copy' and 'Delete' and you should make the following changes:
#on line: 'Copy' change 'DeleteRight' to 'EndOfText'
#on line: 'Copy' change 'DeleteRight' to 'EndOfText'
#on line: 'Delete' change 'DeleteLeft' to 'DeleteRight'
#on line: 'Delete' change 'DeleteLeft' to 'DeleteRight'
#Save, quit StrongED and reload.
#Save, quit StrongED and reload.



=== ZAP ===
=== ZAP ===

Revision as of 16:18, 16 August 2006

How to add PC-delete functionality

StrongED and ZAP - one of these is likely to be your text editor. That neither of do PC-style delete by default may annoy. This is easy to fix. If you just want a simple application to add the fixes in the right places, then Open this link and click on "click here to download" (Because Drobe doesn't allow hotlinking). 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 the Syntax of ModeFile page you will see a reference to KeyList.

The KeyList you need is in the file called ModeFile located in <StrongED$Dir>.Defaults.Modes.BaseMode. NB: I recommend copying this file to Choices:!StrED_cfg.UserPrefs.Modes.BaseMode .

  1. 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.'
  2. Scroll down until you see the section beginning with 'Tab'.
  3. Here you will find 'Copy' and 'Delete' and you should make the following changes:
  4. on line: 'Copy' change 'DeleteRight' to 'EndOfText'
  5. on line: 'Delete' change 'DeleteLeft' to 'DeleteRight'
  6. Save, quit StrongED and reload.

ZAP

ZAP is easier, as you can find the Keymap file from the iconbar menu: Options->Edit config->Keys.

  1. This opens the file Choices:!ZapUser.Config.Keys.UK. Make the following changes to it:
  2. on line: "DELETE &07F' change 'DELETE' to 'DELETENEXT'
  3. on line: 'sDELETE &01F' change 'DELETE "NEXT"' to 'DELWORDEND'
  4. on line: 'Copy &18B' change 'DELETENEXT' to 'CRIGHT'
  5. Save, then click on Options->Create & reload keys