Skip to content

Copy clone command when viewing repository #769

@phardy

Description

@phardy

Is your feature request related to a problem? Please describe.

When browsing the repository list in the TUI, one can hit c to copy a git clone command for the active repository. I frequently direct people to repositories on my soft-serve instance with the -t command (as in ssh git.charm.sh -t soft-serve). But there's no way to easily copy the clone command from there.

Describe the solution you'd like

I think the ideal solution I'd like would be adding a c keyboard shortcut on the Readme tab, which copies the clone command for this repository to the clipboard.

Describe alternatives you've considered

This feature might not be the best-suited use of the c shortcut on the Readme tab, although off-hand I can't think of a better one. A new shortcut that works across all tabs in the repository interface might be something to consider?

I know that the repository interface contains a git clone command that can be manually selected and copied. It's extra steps, though, and can easily fail with longer URIs and/or less wide terminals (I'm still a fan of 80 character wide terms, sorry :) )

The only other workaround is to escape back to the repository list and copy the command from there. That seems to me to be a lot less discoverable than c being listed in the help for the Readme though.

Additional context

Thanks for your work on soft-serve! It's a really wonderful git host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions