Make line numbers in diffs clickable anchors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by locating the diff view and the code that renders its line numbers. Check how both sides of each hunk are represented, then verify that line numbers display as links with anchors that target the requested original or new line in a multi-file diff.
Written by the indexing model from the issue text.
Description
It would be nice if the diff view showed line numbers, and if they were also anchors, so you could share a link to a particular line of a diff.
This is possible on github, eg. the following link:
https://github.com/torvalds/linux/commit/bc976233a872c0f20f018fb1e89264a541584e25#diff-bfdbce36d815c6829b32b5eebc17923fL372
Takes you to line 372 of the left side (original) of a particular hunk of the multi-file diff.
And this link takes you to line 381 on the right side (new) of another hunk:
https://github.com/torvalds/linux/commit/bc976233a872c0f20f018fb1e89264a541584e25#diff-bfdbce36d815c6829b32b5eebc17923fR381
- Dominant language
- Python
- Stars
- 317
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getpatchwork/patchwork
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getpatchwork/patchwork#668 ·
-
bug web-ui
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
getpatchwork/patchwork#546 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
getpatchwork/patchwork#664 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
getpatchwork/patchwork#663 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
getpatchwork/patchwork#645 ·
All issues in getpatchwork/patchwork
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·