You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zsh/Doc/Zsh/mod_deltochar.yo

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()