Function: treemacs--jump-to-next-treemacs-window
treemacs--jump-to-next-treemacs-window is a byte-compiled function
defined in treemacs-core-utils.el.
Signature
(treemacs--jump-to-next-treemacs-window)
Documentation
Jump from the current to the next treemacs-based window.
Will do nothing and return nil if no such window exists, or if there is only one treemacs window.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs--jump-to-next-treemacs-window ()
"Jump from the current to the next treemacs-based window.
Will do nothing and return nil if no such window exists, or if there is only one
treemacs window."
(let* ((current-window (selected-window))
(treemacs-windows
(--filter
(buffer-local-value 'treemacs--in-this-buffer (window-buffer it))
(window-list))))
(-when-let (idx (--find-index (equal it current-window) treemacs-windows))
(-let [next-window (nth (% (1+ idx) (length treemacs-windows)) treemacs-windows)]
(unless (eq next-window current-window)
(select-window next-window))))))