Przeglądaj źródła

ed and VE: add command Y

pull/116/head
Virgil Dupras 4 lat temu
rodzic
commit
bc951a5ff1
5 zmienionych plików z 8 dodań i 5 usunięć
  1. +2
    -2
      blk/101
  2. +2
    -0
      blk/102
  3. +1
    -1
      blk/112
  4. +2
    -2
      blk/122
  5. +1
    -0
      blk/128

+ 2
- 2
blk/101 Wyświetl plik

@@ -12,5 +12,5 @@ F xxx: find typed FBUF in block, starting from current
position+1. If not found, don't move.
I xxx: insert typed IBUF at cursor. "I" shadows core word. Use
"i" to access it.
X ( n -- ): Delete X chars after cursor and place in IBUF.
E: Run X with n = length of FBUF.
Y: Copy n characters after cursor into IBUF, n being length of
FBUF. (cont.)

+ 2
- 0
blk/102 Wyświetl plik

@@ -0,0 +1,2 @@
X ( n -- ): Delete X chars after cursor and place in IBUF.
E: Run X with n = length of FBUF.

+ 1
- 1
blk/112 Wyświetl plik

@@ -8,4 +8,4 @@
SWAP 0 FILL
EDPOS @ 64 / _pln ;
: E FBUF _blen X ;
: Y FBUF _blen icpy ;

+ 2
- 2
blk/122 Wyświetl plik

@@ -6,8 +6,8 @@
'w' moves forward by "modifier" words. 'b' moves backward.
'W' moves to end-of-word. 'B', backwards.

'I', 'F', 'X' and 'E' invoke the corresponding command from the
Block Editor (B100). Refer to documentation there.
'I', 'F', 'Y', 'X' and 'E' invoke the corresponding command
from the Block Editor (B100). Refer to documentation there.

'o' inserts a blank line after the cursor. 'O', before.



+ 1
- 0
blk/128 Wyświetl plik

@@ -3,6 +3,7 @@
: $] BLK> @ acc@ + selblk ;
: $I mode! 'I' EMIT IBUF 1 buftype _I contents mode! SPC ;
: $F mode! 'F' EMIT FBUF 2 buftype _F setpos mode! SPC ;
: $Y Y ;
: $E E contents ;
: $X acc@ X contents ;
: $h -1 cmv ; : $l 1 cmv ; : $k -64 cmv ; : $j 64 cmv ;


Ładowanie…
Anuluj
Zapisz