Skip to content

🚀 Allow multiple hyperlinks per line #1907

@gorfey

Description

@gorfey

I have hyperlinks set up to make commit hashes link to corresponding pages on gitlab; for the most part it works great, but if there are multiple things resembling commit hashes on a line it seems to only make the last one a link. There are a few scenarios in which this behavior is inconvenient for me:

  1. I'm using git range-diff, which displays multiple commit hashes per line, all of which I'd like to become links.
  2. I'm using git log with a --pretty format that puts the commit hash and the commit title on the same line, and a commit title mentions another commit's hash (say, "revert commit xyz").
  3. I'm using git log with a --pretty format that puts the commit hash and the commit title on the same line, and a commit title mentions something that isn't a commit hash, but the parser thinks is one, like an 8 digit number. (The link to a nonexistent commit would be fine, except that it blocks creation of a useful link.)

Links would be more useful for me if in all of these scenarios it turned both into links (or even 3/4/5/etc. links on one line, if multiple of those things happened together, I suppose).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions