Function: magit-visit-thing

magit-visit-thing is an interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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"))))