Add "Copy path to clipboard" button #13733

Closed
opened 2025-11-02 10:51:39 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @kuraga on GitHub (Nov 20, 2024).

Feature Description

Good day!

  1. At a commit page,
    and at a Pull Request page, in the Files Changed tab,
    and at a 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,

and

  1. At a file page,

    at the header,

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

The proposition is to add a such.

Thanks.

Screenshots

image

Originally created by @kuraga on GitHub (Nov 20, 2024). ### Feature Description Good day! 1. At a commit page, and at a Pull Request page, in the `Files Changed` tab, and at a Compare page, 1. at the each changed file's panel, at the header, alongside the file path, and/or 2. in the tree side-panel, alongside the each file's name, and 2. At a file page, at the header, there is no the `Copy path to clipboard` button/icon/link. The proposition is to add a such. Thanks. ### Screenshots ![image](https://github.com/user-attachments/assets/9156c1fa-5850-4ccf-8047-2baa73985e4e)
GiteaMirror added the type/proposaltopic/ui labels 2025-11-02 10:51:39 -06:00
Author
Owner

@silverwind commented on GitHub (Nov 20, 2024):

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

33850a83fe/templates/repo/diff/box.tmpl (L133)

@silverwind commented on GitHub (Nov 20, 2024): 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
Author
Owner

@kuraga commented on GitHub (Nov 20, 2024):

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

@kuraga commented on GitHub (Nov 20, 2024): Yes. (Sorry, Gitea demo site is down.)
Author
Owner

@silverwind commented on GitHub (Nov 20, 2024):

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

@silverwind commented on GitHub (Nov 20, 2024): That said, we are missing the button in file view, I will add it later.
Author
Owner

@kuraga commented on GitHub (Nov 22, 2024):

@silverwind , @wxiaoguang , what about a file page' header? https://demo.gitea.com/phoedos/pmd/src/branch/main/package.json

@kuraga commented on GitHub (Nov 22, 2024): @silverwind , @wxiaoguang , what about a file page' header? https://demo.gitea.com/phoedos/pmd/src/branch/main/package.json
Author
Owner

@silverwind commented on GitHub (Nov 22, 2024):

It's be there but the demo site it outdated currently.

@silverwind commented on GitHub (Nov 22, 2024): It's be there but the demo site it outdated currently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13733