mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
avy.el (avy-goto-char-2-above): Add
avy.el (avy-goto-char-2-below): Add These are versions of avy-goto-char-2 that are restricted to matches before or after the point in the current window. Fixes #148
This commit is contained in:
parent
58bc417c55
commit
ba950a0ad5
32
avy.el
32
avy.el
@ -975,6 +975,38 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
arg
|
arg
|
||||||
avy-style)))
|
avy-style)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun avy-goto-char-2-above (char1 char2 &optional arg)
|
||||||
|
"Jump to the currently visible CHAR1 followed by CHAR2.
|
||||||
|
This is a scoped version of `avy-goto-char-2', where the scope is
|
||||||
|
the visible part of the current buffer up to point."
|
||||||
|
(interactive (list (read-char "char 1: " t)
|
||||||
|
(read-char "char 2: " t)
|
||||||
|
current-prefix-arg))
|
||||||
|
(avy-with avy-goto-char-2
|
||||||
|
(avy--generic-jump
|
||||||
|
(regexp-quote (string char1 char2))
|
||||||
|
arg
|
||||||
|
avy-style
|
||||||
|
(window-start (selected-window))
|
||||||
|
(point))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun avy-goto-char-2-below (char1 char2 &optional arg)
|
||||||
|
"Jump to the currently visible CHAR1 followed by CHAR2.
|
||||||
|
This is a scoped version of `avy-goto-char-2', where the scope is
|
||||||
|
the visible part of the current buffer following point."
|
||||||
|
(interactive (list (read-char "char 1: " t)
|
||||||
|
(read-char "char 2: " t)
|
||||||
|
current-prefix-arg))
|
||||||
|
(avy-with avy-goto-char-2
|
||||||
|
(avy--generic-jump
|
||||||
|
(regexp-quote (string char1 char2))
|
||||||
|
arg
|
||||||
|
avy-style
|
||||||
|
(point)
|
||||||
|
(window-end (selected-window) t))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun avy-isearch ()
|
(defun avy-isearch ()
|
||||||
"Jump to one of the current isearch candidates."
|
"Jump to one of the current isearch candidates."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user