ace-jump-zap
provides the functionality of zap-to-char
and zap-up-to-char
using ace-jump-mode
. In a nutshell, you may trigger a key-binding to launch ace-jump-char-mode
to vaporize all characters between the cursor and the selected character.
Recommended install from MELPA with M-x package-install ace-jump-zap
.
Bind (ace-jump-zap-to-char)
or (ace-jump-zap-up-to-char)
to the key-binding of your heart's desire and zap away.
Alternatively, you can bind the helper functions (ace-jump-zap-to-char-dwim)
and (ace-jump-zap-up-to-char-dwim)
. Calling them interactively will trigger (zap-to-char)
and (zap-up-to-char)
respectively, but with a prefix it will call the ace-jump-zap
version.
This is the function used for zapping between point and char. The default is 'delete-region
but it could also be 'kill-region
.
Set to non-nil to choose to only zap forward from the point. Default will zap in both directions from the point in the current window.
Non-nil means sort the zap candidates by proximity to the current point. Set to nil for the default ace-jump-mode
ordering. Enabled by default as of 0.1.0.
Set to non-nil to limit zapping reach to the first 52 characters. This is only really useful with ajz/sort-by-closest
set to non-nil. Enabled by default as of 0.1.0.