Editor quirks: Difference between revisions
m (Fixed vandalism again) |
Simon Smith (talk | contribs) (Described Edit bug. Slight rewordings. Replaced - with – and ... with …) |
||
Line 1: | Line 1: | ||
== How to add PC-delete functionality == |
== How to add PC-delete functionality == |
||
For most RISC OS users either [[StrongED]] and [[Zap]] is likely to be the preferred 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 the following link to [http://jymbob.drobe.co.uk/textfixes.html text editor fixes] on Drobe will help. (Because Drobe does not allow hotlinking you will need to open the link and then click to download the contents.) If, on the other hand, you want to know what's involved, read on… |
|||
[[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 [http://jymbob.drobe.co.uk/textfixes.html Open this link and click on "click here to download"] <small>(Because Drobe doesn't allow hotlinking)</small>. |
|||
If, on the other hand, you want to know what's involved, read on... |
|||
=== StrongED === |
=== 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. |
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. |
||
Line 13: | Line 8: | ||
The KeyList you need 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: |
NB: I recommend copying this file to Choices:!StrED_cfg.UserPrefs.Modes.BaseMode . |
||
#Open this up and search for 'KeyList' |
#Open this up and search for 'KeyList'. Not that one, nor the next one&helip; 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 will 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: |
||
Line 23: | Line 18: | ||
=== Zap === |
=== Zap === |
||
Zap is easier, as you can find the Keymap file from the iconbar menu: Options->Edit config->Keys. |
Zap is easier, as you can find the Keymap file from the iconbar menu: Options->Edit config->Keys. |
||
#This opens the file Choices:!ZapUser.Config.Keys.UK. Make the following changes to it: |
#This opens the file Choices:!ZapUser.Config.Keys.UK. Make the following changes to it: |
||
Line 30: | Line 24: | ||
#on line: 'Copy &18B' change 'DELETENEXT' to 'CRIGHT' |
#on line: 'Copy &18B' change 'DELETENEXT' to 'CRIGHT' |
||
#Save, then click on Options->Create & reload keys |
#Save, then click on Options->Create & reload keys |
||
---- |
|||
==Edit Bug== |
|||
The editor bundled with all versions of RISC OS is Edit. This is quite a powerful editor in its own right, although not in the same league as StrongEd or Zap. Unfortunately it has at least one serious bug; it does not cope with large files with long lines. This is most noticeable if you load a binary file for some reason. If you scroll down towards the end of the file, you will encounter redraw glitches, and you will find that clicking with the mouse and trying to alter text will change something ''near'' where you clicked. Because of the redraw bug, precisely what was changed and where in the file was altered is nigh-impossible to see. The only workaround for this well-known problem is to switch to another editor. StrongEd and Zap both come highly recommended. Edit still works fine for smaller text files. |
Revision as of 12:40, 7 October 2007
How to add PC-delete functionality
For most RISC OS users either StrongED and Zap is likely to be the preferred 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 the following link to text editor fixes on Drobe will help. (Because Drobe does not allow hotlinking you will need to open the link and then click to download the contents.) 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 .
- Open this up and search for 'KeyList'. Not that one, nor the next one&helip; 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 will 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 easier, as you can find the Keymap file from the iconbar menu: Options->Edit config->Keys.
- This opens the file Choices:!ZapUser.Config.Keys.UK. Make the following changes to it:
- 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
Edit Bug
The editor bundled with all versions of RISC OS is Edit. This is quite a powerful editor in its own right, although not in the same league as StrongEd or Zap. Unfortunately it has at least one serious bug; it does not cope with large files with long lines. This is most noticeable if you load a binary file for some reason. If you scroll down towards the end of the file, you will encounter redraw glitches, and you will find that clicking with the mouse and trying to alter text will change something near where you clicked. Because of the redraw bug, precisely what was changed and where in the file was altered is nigh-impossible to see. The only workaround for this well-known problem is to switch to another editor. StrongEd and Zap both come highly recommended. Edit still works fine for smaller text files.