Function: forge-copy-url-at-point-as-kill
forge-copy-url-at-point-as-kill is an interactive and natively
compiled function defined in forge-commands.el.
Signature
(forge-copy-url-at-point-as-kill)
Documentation
Copy the url of thing at point or the thing visited in the current buffer.
Key Bindings
magit-mode-map C-c C-w
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-commands.el
;;;###autoload
(defun forge-copy-url-at-point-as-kill ()
"Copy the url of thing at point or the thing visited in the current buffer."
(interactive)
(if-let ((target (forge--browse-target)))
(let ((url (if (stringp target) target (forge-get-url target))))
(kill-new url)
(message "Copied \"%s\"" url))
(user-error "Nothing at point with a URL")))