Editor quirks

From RISC OS

Revision as of 00:16, 10 June 2007 by Cterran (Talk | contribs)
Jump to: navigation, search

How to add PC-delete functionality

StrongED and Zap - one of these is likely to be your text editor. The fact that neither of them 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
Personal tools