diff --git a/avy.el b/avy.el index bf0350b..e171ad4 100644 --- a/avy.el +++ b/avy.el @@ -1307,6 +1307,28 @@ The window scope is determined by `avy-all-windows' (ARG negates it)." (regexp-quote (string char))) :window-flip arg))) +;;;###autoload +(defun avy-goto-char-above (char &optional arg) + "Jump to the currently visible CHAR in above. +The window scope is determined by `avy-all-windows' (ARG negates it)." + (interactive (list (read-char "char: " t))) + (avy-with avy-goto-char + (avy-jump + (regexp-quote (string char)) + :beg (window-start) + :end (point)))) + +;;;###autoload +(defun avy-goto-char-below (char &optional arg) + "Jump to the currently visible CHAR in below. +The window scope is determined by `avy-all-windows' (ARG negates it)." + (interactive (list (read-char "char: " t))) + (avy-with avy-goto-char + (avy-jump + (regexp-quote (string char)) + :beg (point) + :end (window-end (selected-window) t)))) + ;;;###autoload (defun avy-goto-char-in-line (char) "Jump to the currently visible CHAR in the current line."