Function: magit-todos-jump-to-item

magit-todos-jump-to-item is an interactive and natively compiled function defined in magit-todos.el.

Signature

(magit-todos-jump-to-item &key PEEK (ITEM (oref (magit-current-section) value)))

Documentation

Show current ITEM.

If PEEK is non-nil, keep focus in status buffer window.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(cl-defun magit-todos-jump-to-item (&key peek (item (oref (magit-current-section) value)))
  "Show current ITEM.
If PEEK is non-nil, keep focus in status buffer window."
  (interactive)
  (let* ((status-window (selected-window))
         (buffer (magit-todos--item-buffer item)))
    (pop-to-buffer buffer)
    (magit-todos--goto-item item)
    (when (derived-mode-p 'org-mode)
      ;; Because `org-show-entry' was renamed and moved in Org 9.6, we
      ;; have to silence warnings about it.  If Org is loaded, the
      ;; function will be.
      (cond ((version<= "9.6" (org-version))
             (with-no-warnings
               (org-fold-show-entry)))
            (t (with-no-warnings
                 (org-show-entry)))))
    (when peek
      (select-window status-window))))