Insert short link texts for links to files in comments
Description
In Markdown fields, when including links to issues, merge requests or comments within GitLab, a corresponding short link text is automatically inserted, e.g.
-
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12183
➡ !12183
-
https://gitlab.com/gitlab-org/gitlab-ce/issues/32515
➡ #32515
-
https://gitlab.com/gitlab-org/gitlab-ce/issues/32515#note_29997037
➡ #32515 (comment 29997037)
However, this is not (yet) the case for links to files, e.g.
-
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/.gitlab-ci.yml
❌ .gitlab-ci.yml (in master)
-
https://gitlab.com/gitlab-org/gitlab-ce/blob/d14b842820a9672a8a7bbd85c636e7d16ec58c3d/.gitlab-ci.yml
❌ .gitlab-ci.yml (at d14b8428)
Proposal
For file links, corresponding short link texts should automatically be inserted (see examples above).