mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
parent
aa2eb24f53
commit
791c16c6ac
19
avy.el
19
avy.el
@ -567,6 +567,25 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
arg
|
arg
|
||||||
avy-style)))
|
avy-style)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun avy-goto-char-in-line (char &optional arg)
|
||||||
|
"Jump to the currently visible CHAR in the current line.
|
||||||
|
The window scope is determined by `avy-all-windows' (ARG negates it)."
|
||||||
|
(interactive (list (read-char "char: ")
|
||||||
|
current-prefix-arg))
|
||||||
|
(let ((avy-all-windows
|
||||||
|
(if arg
|
||||||
|
(not avy-all-windows)
|
||||||
|
avy-all-windows)))
|
||||||
|
(avy--with-avy-keys avy-goto-char
|
||||||
|
(avy--goto
|
||||||
|
(avy--process
|
||||||
|
(save-restriction
|
||||||
|
(narrow-to-region (line-beginning-position)
|
||||||
|
(line-end-position))
|
||||||
|
(avy--regex-candidates (string char)))
|
||||||
|
(avy--style-fn avy-style))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun avy-goto-char-2 (char1 char2 &optional arg)
|
(defun avy-goto-char-2 (char1 char2 &optional arg)
|
||||||
"Jump to the currently visible CHAR1 followed by CHAR2.
|
"Jump to the currently visible CHAR1 followed by CHAR2.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user