22.12 The zsh/deltochar Module

The zsh/deltochar module makes available two ZLE functions:

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 n, the nth) instance of that character. Negative repeat counts mean delete backwards.

zap-to-char

This behaves like delete-to-char, except that the final occurrence of the character itself is not deleted.