[Feature] permanent link to a code snippet #5527

Closed
opened 2025-11-02 06:27:53 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @TimerWolf on GitHub (Jun 10, 2020).

  • Gitea version (or commit ref): 1.12.0-rc1
  • Git version: N/A
  • Operating system: N/A

Description

Hi!

I did try search for this but i could not find it, so i post it here and see if it´s a duplicate request or not.

Like the title says it´s the same feature that's in GitHub, and a very handy as well if you ask me so why not have the same function inside Gitea?

Maybe would be smart to have the "shortcuts" as well "Copy link/Copy permalink/Open new issue" not sure what "View git blame" is or if it is build in Gitea.

But i do have some thoughts about the permalink, the "url" seems to be a direct path to the current file where it is on the website, what happens if the "url" for the Gitea is changed? Would that broke every link that was ever made?

Screenshots

Alt text

Alt text

Alt text

Github documentation

Originally created by @TimerWolf on GitHub (Jun 10, 2020). - Gitea version (or commit ref): 1.12.0-rc1 - Git version: N/A - Operating system: N/A ## Description Hi! I did try search for this but i could not find it, so i post it here and see if it´s a duplicate request or not. Like the title says it´s the same feature that's in GitHub, and a very handy as well if you ask me so why not have the same function inside Gitea? Maybe would be smart to have the "shortcuts" as well "Copy link/Copy permalink/Open new issue" not sure what "View git blame" is or if it is build in Gitea. But i do have some thoughts about the permalink, the "url" seems to be a direct path to the current file where it is on the website, what happens if the "url" for the Gitea is changed? Would that broke every link that was ever made? ## Screenshots ![Alt text](https://help.github.com/assets/images/help/repository/copy-permalink-specific-line.png) ![Alt text](https://help.github.com/assets/images/help/repository/code-snippet-permalink-in-comment.png) ![Alt text](https://help.github.com/assets/images/help/repository/rendered-code-snippet.png) ## Link [Github documentation](https://help.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet)
GiteaMirror added the type/proposal label 2025-11-02 06:27:53 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5527