Martin Geisler <
mar...@geisler.net> writes:
>
> I notice that Magit highlights parts in brackets when showing commit
> messages. I typically use that for issue numbers, such as [FOO-123]. Would
> it be possible to have that be a link to the actual issue tracker?
> Something so that I can press RET when point is in the text and then have
> the browser open the relevant page.
>
> I vaguely remember to have seem something about kind of functionality in
> the manual, but I wasn't able to find anything while searching for it now.
You can get that by setting bug-reference-bug-regexp and
bug-reference-url-format. For an example, have a look at .dir-locals.el
in the Magit repo.
Your magit-revision-mode-hook should already include bug-reference-mode.
To follow the link, you can call bug-reference-push-button (C-c RET).
--
Kyle