Skip to content

Commit 24523f9

Browse files
committed
Change keys for MARK&COPY to CONTROL-C + CONTROL-V
This makes more sense with people used to modern editors.
1 parent fd8eaef commit 24523f9

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

help.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
' -----------
66
' Ctrl-A : Move to begining of line
77
' Ctrl-E : Move to end of line
8-
' Ctrl-U / Ctrl-V : Page up / down
8+
' Ctrl-U / Ctrl-I : Page up / down
99
' Ctrl-Z : Undo (only current line)
10-
' Ctrl-M : Set Mark to current line
11-
' Ctrl-C : Copy from Mark to here
10+
' Ctrl-C : Set Mark to current line
11+
' Ctrl-V : Paste from Mark to here
1212
' Ctrl-Q : Exit to DOS
1313
' Ctrl-S : Save file
1414
' Ctrl-L : Load file

manual.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ present you with a little help text:
6363
' -----------
6464
' Ctrl-A : Move to begining of line
6565
' Ctrl-E : Move to end of line
66-
' Ctrl-U / Ctrl-V : Page up / down
66+
' Ctrl-U / Ctrl-I : Page up / down
6767
' Ctrl-Z : Undo (only current line)
68-
' Ctrl-M : Set Mark to current line
69-
' Ctrl-C : Copy from Mark to here
68+
' Ctrl-C : Set Mark to current line
69+
' Ctrl-V : Paste from Mark to here
7070
' Ctrl-Q : Exit to DOS
7171
' Ctrl-S : Save file
7272
' Ctrl-L : Load file
@@ -198,7 +198,7 @@ above.
198198
Moves the cursor ro the beggining or
199199
the end of the line respectively.
200200

201-
- `CONTROL-U` and `CONTROL-V`
201+
- `CONTROL-U` and `CONTROL-I`
202202
Moves the cursor 19 lines up or down
203203
respectively.
204204

@@ -211,18 +211,18 @@ above.
211211
clears the undo buffer, so you can't
212212
undo more than one line.
213213

214-
- `CONTROL-M`
214+
- `CONTROL-C`
215215
Sets the current line as the source
216216
for the copy operations.
217217

218-
- `CONTROL-C`
218+
- `CONTROL-V`
219219
Copy one line from the source marked
220-
with the `CONTROL-M` to the current
220+
with the `CONTROL-C` to the current
221221
cursor position.
222222
After the copy, the source line is
223-
advanced, so by pressing `CONTROL-C`
224-
multiple times you can copy many
225-
lines.
223+
advanced, so by pressing `CONTROL-V`
224+
multiple times you can copy multiple
225+
consecutive lines.
226226

227227
- `CONTROL-L` and `CONTROL-S`
228228
Loads or Saves the file being edited,

src/editor.bas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,8 @@ PROC ProcessKeys
923923
elif key = $15
924924
exec CursorPageUp
925925
'
926-
'--------- Control-V (page down)-
927-
elif key = $16
926+
'--------- Control-I (page down)-
927+
elif key = $09
928928
exec CursorPageDown
929929
'
930930
'--------- Down -----------------
@@ -1006,11 +1006,11 @@ PROC ProcessKeys
10061006
elif key = $1A
10071007
exec UndoEditLine
10081008
'
1009-
'--------- Control-M (set mark) -----
1010-
elif key = $0D
1011-
exec SetMarkPosition
1012-
'--------- Control-C (copy from mark) -----
1009+
'--------- Control-C (set mark) -----
10131010
elif key = $03
1011+
exec SetMarkPosition
1012+
'--------- Control-V (copy from mark) -----
1013+
elif key = $16
10141014
exec CopyFromMark
10151015
'
10161016
'--------- Escape ---------------

0 commit comments

Comments
 (0)