Function: evil-window-top-left

evil-window-top-left is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-window-top-left)

Documentation

Move the cursor to top-left window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-window-top-left ()
  "Move the cursor to top-left window."
  :repeat nil
  (let ((first-child (window-child (frame-root-window))))
    (while (and first-child (not (window-live-p first-child)))
      (setq first-child (window-child first-child)))
    (when first-child
      (select-window
       first-child))))