|
160 | 160 | "onCommand:gitlens.openFileFromRemote", |
161 | 161 | "onCommand:gitlens.openFileOnRemote", |
162 | 162 | "onCommand:gitlens.copyRemoteFileUrlToClipboard", |
| 163 | + "onCommand:gitlens.copyRemoteFileUrlWithoutRange", |
163 | 164 | "onCommand:gitlens.openFileOnRemoteFrom", |
164 | 165 | "onCommand:gitlens.copyRemoteFileUrlFrom", |
165 | 166 | "onCommand:gitlens.openBlamePriorToChange", |
|
3726 | 3727 | "light": "images/light/icon-copy-link.svg" |
3727 | 3728 | } |
3728 | 3729 | }, |
| 3730 | + { |
| 3731 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
| 3732 | + "title": "Copy Remote File Url", |
| 3733 | + "category": "GitLens", |
| 3734 | + "icon": { |
| 3735 | + "dark": "images/dark/icon-copy-link.svg", |
| 3736 | + "light": "images/light/icon-copy-link.svg" |
| 3737 | + } |
| 3738 | + }, |
3729 | 3739 | { |
3730 | 3740 | "command": "gitlens.openFileOnRemoteFrom", |
3731 | 3741 | "title": "Open File on Remote From...", |
|
5614 | 5624 | "command": "gitlens.copyRemoteFileUrlToClipboard", |
5615 | 5625 | "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /remotes/" |
5616 | 5626 | }, |
| 5627 | + { |
| 5628 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
| 5629 | + "when": "false" |
| 5630 | + }, |
5617 | 5631 | { |
5618 | 5632 | "command": "gitlens.openFileOnRemoteFrom", |
5619 | 5633 | "when": "gitlens:activeFileStatus =~ /tracked/ && gitlens:activeFileStatus =~ /remotes/" |
|
6748 | 6762 | ], |
6749 | 6763 | "editor/title/context": [ |
6750 | 6764 | { |
6751 | | - "command": "gitlens.copyRemoteFileUrlToClipboard", |
| 6765 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
6752 | 6766 | "when": "gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.editorTab.clipboard", |
6753 | 6767 | "group": "1_cutcopypaste@100" |
6754 | 6768 | }, |
|
6766 | 6780 | "command": "gitlens.openFileOnRemote", |
6767 | 6781 | "when": "gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.editorTab.remote", |
6768 | 6782 | "group": "2_gitlens@2", |
6769 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 6783 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
6770 | 6784 | }, |
6771 | 6785 | { |
6772 | 6786 | "command": "gitlens.openFileOnRemoteFrom", |
|
6795 | 6809 | "command": "gitlens.openFileOnRemote", |
6796 | 6810 | "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.explorer.remote", |
6797 | 6811 | "group": "4_gitlens@1", |
6798 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 6812 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
6799 | 6813 | }, |
6800 | 6814 | { |
6801 | 6815 | "command": "gitlens.openFileOnRemoteFrom", |
|
6819 | 6833 | "group": "4_timeline@3" |
6820 | 6834 | }, |
6821 | 6835 | { |
6822 | | - "command": "gitlens.copyRemoteFileUrlToClipboard", |
| 6836 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
6823 | 6837 | "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled && gitlens:hasRemotes && config.gitlens.menus.explorer.clipboard", |
6824 | 6838 | "group": "6_copypath@100" |
6825 | 6839 | } |
|
6892 | 6906 | "command": "gitlens.openFileOnRemote", |
6893 | 6907 | "when": "gitlens:enabled && gitlens:hasRemotes && scmProvider == git && scmResourceGroup =~ /^(workingTree|index|merge)$/ && config.gitlens.menus.scmItem.remote", |
6894 | 6908 | "group": "navigation@96", |
6895 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 6909 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
6896 | 6910 | }, |
6897 | 6911 | { |
6898 | 6912 | "command": "gitlens.openFileOnRemoteFrom", |
|
6906 | 6920 | "group": "1_modification@2" |
6907 | 6921 | }, |
6908 | 6922 | { |
6909 | | - "command": "gitlens.copyRemoteFileUrlToClipboard", |
| 6923 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
6910 | 6924 | "when": "gitlens:enabled && gitlens:hasRemotes && scmProvider == git && scmResourceGroup =~ /^(workingTree|index|merge)$/ && config.gitlens.menus.scmItem.clipboard", |
6911 | 6925 | "group": "2_gitlens@1" |
6912 | 6926 | }, |
|
7982 | 7996 | "command": "gitlens.openFileOnRemote", |
7983 | 7997 | "when": "viewItem =~ /gitlens:file\\b((?=.*?\\b\\+committed\\b)|:results)/ && gitlens:hasRemotes", |
7984 | 7998 | "group": "inline@99", |
7985 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 7999 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
7986 | 8000 | }, |
7987 | 8001 | { |
7988 | 8002 | "submenu": "gitlens/commit/file/commit", |
|
8028 | 8042 | "command": "gitlens.openFileOnRemote", |
8029 | 8043 | "when": "viewItem =~ /gitlens:file\\b((?=.*?\\b\\+committed\\b)|:results)/ && gitlens:hasRemotes", |
8030 | 8044 | "group": "2_gitlens_quickopen@5", |
8031 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 8045 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
8032 | 8046 | }, |
8033 | 8047 | { |
8034 | 8048 | "command": "gitlens.openFileHistory", |
|
8075 | 8089 | "command": "gitlens.openFileOnRemote", |
8076 | 8090 | "when": "viewItem =~ /gitlens:(history:(file|line)|status:file)\\b/ && gitlens:hasRemotes", |
8077 | 8091 | "group": "5_gitlens_open@2", |
8078 | | - "alt": "gitlens.copyRemoteFileUrlToClipboard" |
| 8092 | + "alt": "gitlens.copyRemoteFileUrlWithoutRange" |
8079 | 8093 | }, |
8080 | 8094 | { |
8081 | 8095 | "command": "gitlens.views.openPullRequest", |
|
8719 | 8733 | "group": "2_gitlens@1" |
8720 | 8734 | }, |
8721 | 8735 | { |
8722 | | - "command": "gitlens.copyRemoteFileUrlToClipboard", |
| 8736 | + "command": "gitlens.copyRemoteFileUrlWithoutRange", |
8723 | 8737 | "when": "viewItem =~ /gitlens:(file\\b(?=.*?\\b\\+committed\\b)|history:(file|line)|status:file)\\b/ && gitlens:hasRemotes", |
8724 | 8738 | "group": "2_gitlens@2" |
8725 | 8739 | } |
|
0 commit comments