Function: avy-goto-line-above

avy-goto-line-above is an autoloaded, interactive and byte-compiled function defined in avy.el.

Signature

(avy-goto-line-above &optional OFFSET BOTTOM-UP)

Documentation

Goto visible line above the cursor.

OFFSET changes the distance between the closest key to the cursor and the cursor When BOTTOM-UP is non-nil, display avy candidates from top to bottom

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/avy-20241101.1357/avy.el
;;;###autoload
(defun avy-goto-line-above (&optional offset bottom-up)
  "Goto visible line above the cursor.
OFFSET changes the distance between the closest key to the cursor and
the cursor
When BOTTOM-UP is non-nil, display avy candidates from top to bottom"
  (interactive)
  (if offset
    (setq offset (+ 2 (- offset))))
  (let* ((avy-all-windows nil)
         (r (avy--line nil (window-start)
                       (line-beginning-position (or offset 1))
		       bottom-up)))
    (unless (eq r t)
      (avy-action-goto r))))