Browse Source

Adds copy sha/message to commit nodes toolbar

main
Eric Amodio 6 years ago
parent
commit
77f66032bf
5 changed files with 34 additions and 2 deletions
  1. +4
    -0
      images/dark/icon-clipboard.svg
  2. +5
    -0
      images/dark/icon-copy-commit.svg
  3. +4
    -0
      images/light/icon-clipboard.svg
  4. +5
    -0
      images/light/icon-copy-commit.svg
  5. +16
    -2
      package.json

+ 4
- 0
images/dark/icon-clipboard.svg View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#C5C5C5" d="M11.538 4.817H9.267A1.819 1.819 0 0 0 7.45 3a1.819 1.819 0 0 0-1.817 1.817h-2.27C2.61 4.817 2 5.428 2 6.18v9.99c0 .752.61 1.363 1.363 1.363h8.175c.752 0 1.362-.611 1.362-1.363V6.18c0-.752-.61-1.363-1.362-1.363zm-.172 11.353H3.534a.17.17 0 0 1-.171-.169V6.349a.17.17 0 0 1 .171-.169h1.191v.453c0 .757 5.45.727 5.45 0V6.18h1.191a.17.17 0 0 1 .172.169v9.652a.17.17 0 0 1-.172.169zM7.45 4.135a.682.682 0 1 1 0 1.363.682.682 0 0 1 0-1.363"/>
</svg>

+ 5
- 0
images/dark/icon-copy-commit.svg View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#C5C5C5" d="M12.889 6.177L12.9 11.7c-.4-.5-.9-.8-1.4-1l.029-4.354a.17.17 0 0 0-.172-.169h-1.189v.453c0 .726-5.445.756-5.445 0v-.453H3.532a.17.17 0 0 0-.171.169v9.643c0 .094.076.17.171.17L6.1 16.2c.2.5.5.9.9 1.3l-3.639.019c-.751 0-1.36-.609-1.361-1.36V6.177c0-.752.61-1.362 1.361-1.362H5.63c.033-1.398 1.566-2.236 2.76-1.508.528.321.856.89.871 1.508h2.268c.751 0 1.36.61 1.36 1.362zM6.765 4.815a.68.68 0 1 0 1.36 0 .68.68 0 0 0-1.36 0z"/>
<path fill="#C5C5C5" d="M12.836 14.031a2.759 2.759 0 0 0-2.661-2.067c-1.28 0-2.348.884-2.658 2.067H5.35v1.378h2.167c.31 1.185 1.378 2.069 2.658 2.069a2.758 2.758 0 0 0 2.661-2.069H15v-1.378h-2.164zm-2.661 2.206A1.511 1.511 0 0 1 8.66 14.72a1.51 1.51 0 0 1 1.515-1.516c.841 0 1.517.675 1.517 1.516s-.676 1.517-1.517 1.517z"/>
</svg>

+ 4
- 0
images/light/icon-clipboard.svg View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#424242" d="M11.538 4.817H9.267A1.819 1.819 0 0 0 7.45 3a1.819 1.819 0 0 0-1.817 1.817h-2.27C2.61 4.817 2 5.428 2 6.18v9.99c0 .752.61 1.363 1.363 1.363h8.175c.752 0 1.362-.611 1.362-1.363V6.18c0-.752-.61-1.363-1.362-1.363zm-.172 11.353H3.534a.17.17 0 0 1-.171-.169V6.349a.17.17 0 0 1 .171-.169h1.191v.453c0 .757 5.45.727 5.45 0V6.18h1.191a.17.17 0 0 1 .172.169v9.652a.17.17 0 0 1-.172.169zM7.45 4.135a.682.682 0 1 1 0 1.363.682.682 0 0 1 0-1.363"/>
</svg>

+ 5
- 0
images/light/icon-copy-commit.svg View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#424242" d="M12.889 6.177L12.9 11.7c-.4-.5-.9-.8-1.4-1l.029-4.354a.17.17 0 0 0-.172-.169h-1.189v.453c0 .726-5.445.756-5.445 0v-.453H3.532a.17.17 0 0 0-.171.169v9.643c0 .094.076.17.171.17L6.1 16.2c.2.5.5.9.9 1.3l-3.639.019c-.751 0-1.36-.609-1.361-1.36V6.177c0-.752.61-1.362 1.361-1.362H5.63c.033-1.398 1.566-2.236 2.76-1.508.528.321.856.89.871 1.508h2.268c.751 0 1.36.61 1.36 1.362zM6.765 4.815a.68.68 0 1 0 1.36 0 .68.68 0 0 0-1.36 0z"/>
<path fill="#424242" d="M12.836 14.031a2.759 2.759 0 0 0-2.661-2.067c-1.28 0-2.348.884-2.658 2.067H5.35v1.378h2.167c.31 1.185 1.378 2.069 2.658 2.069a2.758 2.758 0 0 0 2.661-2.069H15v-1.378h-2.164zm-2.661 2.206A1.511 1.511 0 0 1 8.66 14.72a1.51 1.51 0 0 1 1.515-1.516c.841 0 1.517.675 1.517 1.516s-.676 1.517-1.517 1.517z"/>
</svg>

+ 16
- 2
package.json View File

@ -1759,7 +1759,11 @@
{
"command": "gitlens.copyMessageToClipboard",
"title": "Copy Commit Message to Clipboard",
"category": "GitLens"
"category": "GitLens",
"icon": {
"dark": "images/dark/icon-clipboard.svg",
"light": "images/light/icon-clipboard.svg"
}
},
{
"command": "gitlens.copyRemoteFileUrlToClipboard",
@ -1769,7 +1773,11 @@
{
"command": "gitlens.copyShaToClipboard",
"title": "Copy Commit ID to Clipboard",
"category": "GitLens"
"category": "GitLens",
"icon": {
"dark": "images/dark/icon-copy-commit.svg",
"light": "images/light/icon-copy-commit.svg"
}
},
{
"command": "gitlens.closeUnchangedFiles",
@ -3308,6 +3316,12 @@
{
"command": "gitlens.copyShaToClipboard",
"when": "viewItem =~ /gitlens:(file:)?commit\\b/",
"group": "inline@98",
"alt": "gitlens.copyMessageToClipboard"
},
{
"command": "gitlens.copyShaToClipboard",
"when": "viewItem =~ /gitlens:(file:)?commit\\b/",
"group": "5_gitlens@1"
},
{

Loading…
Cancel
Save