Is there a version of zap-up-to-char that counts from the end of a line? Or maybe more simply zaps up to the last occurence, since that's what I sometimes need.
Ténno Seremélʹ
Is there a version of zap-up-to-char that counts from the end of a line? Or maybe more simply zaps up to the last occurence, since that's what I sometimes need. 12 comments
jeeger
@tennoseremel It's yet another extra package, I know ☺. But the `goto-char` functionality is great.
rayslava
@tennoseremel or this one :blobcatthink: (defun zap-up-to-last-char (char)
Ténno Seremélʹ
@rayslava Thanks! I'll try it later, when I have enough mental power to read what it does :blobcatgiggle:
rayslava
@tennoseremel yep. (defun zap-up-to-last-char (char)
Ténno Seremélʹ
@rayslava Yay :) (defun zap-up-to-last-char (char)
Ténno Seremélʹ
@rayslava Looking at the source of zap-up-to-char it needs to be a bit longer, so it could be used non-interactively… :) |
@tennoseremel You could use `avy-zap-up-to-char-dvim` which allows you to select the character position interactively.