1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-15 13:34:18 +01:00
zsh/Doc/Zsh/mod_deltochar.yo
2000-05-11 00:01:03 +00:00

20 lines
599 B
Plaintext

COMMENT(!MOD!zsh/deltochar
A ZLE function duplicating EMACS' tt(zap-to-char).
!MOD!)
The tt(zsh/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 occurrence of
the character itself is not deleted.
)
enditem()