about summary refs log tree commit diff
path: root/Doc/Zsh/mod_deltochar.yo
blob: d8f847f1b79d2fcefc63279ed0e0450d492b691c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
COMMENT(!MOD!
A ZLE function duplicating EMACS' tt(zap-to-char).
!MOD!)
The tt(deltochar) module makes available two ZLE functions:

startitem()
tindex(delete-to-char)
item(tt(delete-to-char))(
Read a character from the keyboard, and
delete from the cursor position up to and including the next
(or, with repeat count var(n), the var(n)th) instance of that character.
Negative repeat counts mean delete backwards.
)
tindex(zap-to-char)
item(tt(zap-to-char))(
This behaves like tt(delete-to-char), except that the final occurence of
the character itself is not deleted.
)
enditem()