go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.24k stars 5.5k forks source link

Add "Copy path to clipboard" button #32583

Closed kuraga closed 1 day ago

kuraga commented 1 day ago

Feature Description

Good day!

At the Commit page, and at the Pull Request page, in the Files Changed tab, and at the Compare page,

  1. at the each changed file's panel, at the header, alongside the file path,

and/or

  1. in the tree side-panel, alongside the each file's name,

there is no the Copy path to clipboard button/icon/link.

The proposition is to add a such.

Thanks.

Screenshots

image

silverwind commented 1 day ago

This is already implemented as far as I'm aware in all those places. Are you using a outdated gitea version?

https://github.com/go-gitea/gitea/blob/33850a83fe4ebd23a762a7aac81614c42e303bfa/templates/repo/diff/box.tmpl#L133

kuraga commented 1 day ago

Yes. (Sorry, Gitea demo site is down.)

silverwind commented 1 day ago

That said, we are missing the button in file view, I will add it later.