diff --git a/app/src/ui/repositories-list/repository-list-item.tsx b/app/src/ui/repositories-list/repository-list-item.tsx index 34742ed8c76..d912b5769c2 100644 --- a/app/src/ui/repositories-list/repository-list-item.tsx +++ b/app/src/ui/repositories-list/repository-list-item.tsx @@ -166,7 +166,11 @@ export class RepositoryListItem extends React.Component< ...this.buildAliasMenuItems(), { label: __DARWIN__ ? 'Copy Repo Name' : 'Copy repo name', - action: this.copyToClipboard, + action: this.copyNameToClipboard, + }, + { + label: __DARWIN__ ? 'Copy Repo Path' : 'Copy repo path', + action: this.copyPathToClipboard, }, { type: 'separator' }, { @@ -258,9 +262,13 @@ export class RepositoryListItem extends React.Component< } } - private copyToClipboard = () => { + private copyNameToClipboard = () => { clipboard.writeText(this.props.repository.name) } + + private copyPathToClipboard = () => { + clipboard.writeText(this.props.repository.path) + } } const renderRepoIndicators: React.FunctionComponent<{