Function: avy-goto-char-2
avy-goto-char-2 is an autoloaded, interactive and byte-compiled
function defined in avy.el.
Signature
(avy-goto-char-2 CHAR1 CHAR2 &optional ARG BEG END)
Documentation
Jump to the currently visible CHAR1 followed by CHAR2.
The window scope is determined by avy-all-windows.
When ARG is non-nil, do the opposite of avy-all-windows.
BEG and END narrow the scope where candidates are searched.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/avy-20241101.1357/avy.el
;;;###autoload
(defun avy-goto-char-2 (char1 char2 &optional arg beg end)
"Jump to the currently visible CHAR1 followed by CHAR2.
The window scope is determined by `avy-all-windows'.
When ARG is non-nil, do the opposite of `avy-all-windows'.
BEG and END narrow the scope where candidates are searched."
(interactive (list (let ((c1 (read-char "char 1: " t)))
(if (memq c1 '(? ?\b))
(keyboard-quit)
c1))
(let ((c2 (read-char "char 2: " t)))
(cond ((eq c2 ?)
(keyboard-quit))
((memq c2 avy-del-last-char-by)
(keyboard-escape-quit)
(call-interactively 'avy-goto-char-2))
(t
c2)))
current-prefix-arg
nil nil))
(when (eq char1 ?
)
(setq char1 ?\n))
(when (eq char2 ?
)
(setq char2 ?\n))
(avy-with avy-goto-char-2
(avy-jump
(regexp-quote (string char1 char2))
:window-flip arg
:beg beg
:end end)))