Highlight range in files links
Problem to solve
When linking to a file, it's possible to select a line and give a link to the hightlighted line:
https://gitlab.com/account/project/path/to/a/file#L42
Though there's a nice behaviour in github to create a link to a range of code instead of a single line with a link as follows:
https://gitlab.com/account/project/path/to/a/file#L42,L69
here's how it looks like on github: https://github.com/guyzmo/git-repo/blob/devel/git_repo/repo.py#L580,L587
Intended users
anybody that can read a file online
Further details
Makes it easier to highlight a block of code or a function, when referring to it and share it with others.
Proposal
I have no suggestion on how to expose this in terms of UX (might be: click once, select a line, click on another line select a range, click on yet another line, cancel the selection, and select that line). But I guess you guys have betten UX ideas than I might have!
Github did not solve the UX side, the feature is only available through editing the address bar. And I miss it regularly on gitlab!
Permissions and Security
it's pure UI, so anybody who can read a file online.
Documentation
not sure
Testing
not sure
What does success look like, and how can we measure that?
Users like me would be very happy, and it would improve cooperation within a team.