Function: magit-visit-thing

magit-visit-thing is an interactive and natively compiled function defined in magit-mode.el.

Signature

(magit-visit-thing)

Documentation

This is a placeholder command, which may signal an error if called.

Where applicable, other keymaps remap this command to another, which actually visits the thing at point.

Key Bindings

magit-mode-map C-<return> magit-mode-map RET magit-module-section-map C-<return> magit-module-section-map C-j

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-mode.el
(defun magit-visit-thing ()
  "This is a placeholder command, which may signal an error if called.
Where applicable, other keymaps remap this command to another,
which actually visits the thing at point."
  (declare (completion ignore))
  (interactive)
  (cond-let
    ((eq transient-current-command 'magit-dispatch)
     (call-interactively (key-binding (this-command-keys))))
    ([url (thing-at-point 'url t)]
     (browse-url url))
    ((user-error "There is no thing at point that could be visited"))))