Function: magit-dired-jump
magit-dired-jump is an autoloaded, interactive and byte-compiled
function defined in magit-dired.el.
Signature
(magit-dired-jump &optional OTHER-WINDOW)
Documentation
Visit file at point using Dired.
With a prefix argument, visit in another window. If there
is no file at point, then instead visit default-directory.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-dired.el
;;; Open Dired from Magit
;;;###autoload
(defun magit-dired-jump (&optional other-window)
"Visit file at point using Dired.
With a prefix argument, visit in another window. If there
is no file at point, then instead visit `default-directory'."
(interactive "P")
(dired-jump other-window
(and-let ((file (if (derived-mode-p 'magit-repolist-mode)
(tabulated-list-get-id)
(magit-file-at-point))))
(expand-file-name (if (file-directory-p file)
(file-name-as-directory file)
file)))))