Y
Hacker News
new
|
ask
|
show
|
jobs
by
thegeekpirate
200 days ago
Press "y" before linking to a Github file/line to ensure it stays accurate
https://github.com/ublue-os/bazzite/blob/5e8f61a56ca3da02778...
3 comments
flakes
200 days ago
I had no idea there was a hotkey for that. Thank you!
link
mikepurvis
200 days ago
Even better, doing so allows GitHub to insert a source snippet if you paste a link like that into an issue or comment.
link
flakes
200 days ago
Yeah, I just always used the context windows to set permalink. Saves me a step now!
link
thegeekpirate
196 days ago
My pleasure!
link
_cenw
191 days ago
This is cool, but also broken. If you click "raw" after pressing y without reloading, the link is still to a tag/branch.
link
d3Xt3r
199 days 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?
link
fragmede
199 days 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?
link