Function: eca-chat--follow-link-at-point

eca-chat--follow-link-at-point is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--follow-link-at-point)

Documentation

Open the markdown link or URL at point in the chat buffer.

Handles inline [text](url) links as well as bare URLs, including bare URLs wrapped in markdown emphasis like **https://...** or _https://..._ where thing-at-point would otherwise capture the trailing markup characters as part of the URL.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--follow-link-at-point ()
  "Open the markdown link or URL at point in the chat buffer.
Handles inline [text](url) links as well as bare URLs, including bare
URLs wrapped in markdown emphasis like **https://...** or _https://..._
where `thing-at-point' would otherwise capture the trailing markup
characters as part of the URL."
  (if (eca-chat--face-at-point-member-p '(markdown-plain-url-face))
      (when-let* ((url (thing-at-point 'url t)))
        (browse-url (string-trim url "[*_~`]+" "[*_~`]+")))
    (markdown-follow-thing-at-point nil)))