Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thegeekpirate
· 1y ago · 0 comments
Press "y" before linking to a Github file/line to ensure it stays accurate
https://github.com/ublue-os/bazzite/blob/5e8f61a56ca3da02778...
Comments
[–]
flakes
1y ago
I had no idea there was a hotkey for that. Thank you!
[–]
mikepurvis
1y ago
Even better, doing so allows GitHub to insert a source snippet if you paste a link like that into an issue or comment.
[–]
flakes
1y ago
Yeah, I just always used the context windows to set permalink. Saves me a step now!
[–]
thegeekpirate
OP
1y ago
My pleasure!
[–]
_cenw
12mo ago
This is cool, but also broken. If you click "raw" after pressing y without reloading, the link is still to a tag/branch.
[–]
d3Xt3r
1y ago
What do you mean by "to ensure it stays accurate"? Why wouldn't it be accurate if you're just copy-pasting the link?
[–]
fragmede
1y ago
is the link to the file as it exists on "main" currently, or at a specific revision, so in three years, it will still refer to that version of the file?