Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Copy path to clipboard" button #32583

Closed
kuraga opened this issue Nov 20, 2024 · 5 comments · Fixed by #32584
Closed

Add "Copy path to clipboard" button #32583

kuraga opened this issue Nov 20, 2024 · 5 comments · Fixed by #32584
Labels
topic/ui Change the appearance of the Gitea UI type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@kuraga
Copy link

kuraga commented 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

@kuraga kuraga added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Nov 20, 2024
@lunny lunny added the topic/ui Change the appearance of the Gitea UI label Nov 20, 2024
@silverwind
Copy link
Member

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

<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button>

@kuraga
Copy link
Author

kuraga commented Nov 20, 2024

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

@kuraga kuraga closed this as completed Nov 20, 2024
@silverwind
Copy link
Member

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

@kuraga kuraga reopened this Nov 20, 2024
silverwind added a commit to silverwind/gitea that referenced this issue Nov 21, 2024

Verified

This commit was signed with the committer’s verified signature.
Also adds a tooltip which is replicated to the same button in the diff
box.

Fixes: go-gitea#32583
@kuraga
Copy link
Author

kuraga commented Nov 22, 2024

@silverwind
Copy link
Member

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

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Feb 19, 2025
richmahn pushed a commit to unfoldingWord/dcs that referenced this issue Mar 2, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Also adds a tooltip which is replicated to the same button in the diff
box. Fixes: go-gitea/gitea#32583
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants