|
7196 | 7196 | "title": "Show File History View", |
7197 | 7197 | "category": "GitLens" |
7198 | 7198 | }, |
| 7199 | + { |
| 7200 | + "command": "gitlens.showFileInTimeline", |
| 7201 | + "title": "Open Visual File History", |
| 7202 | + "category": "GitLens", |
| 7203 | + "icon": "$(graph-scatter)" |
| 7204 | + }, |
| 7205 | + { |
| 7206 | + "command": "gitlens.showFolderInTimeline", |
| 7207 | + "title": "Open Visual Folder History", |
| 7208 | + "icon": "$(graph-scatter)" |
| 7209 | + }, |
7199 | 7210 | { |
7200 | 7211 | "command": "gitlens.showGraph", |
7201 | 7212 | "title": "Show Commit Graph", |
|
7234 | 7245 | "title": "Inspect Details", |
7235 | 7246 | "icon": "$(eye)" |
7236 | 7247 | }, |
7237 | | - { |
7238 | | - "command": "gitlens.showInTimeline", |
7239 | | - "title": "Open Visual File History", |
7240 | | - "category": "GitLens", |
7241 | | - "icon": "$(graph-scatter)" |
7242 | | - }, |
7243 | 7248 | { |
7244 | 7249 | "command": "gitlens.showLastQuickPick", |
7245 | 7250 | "title": "Show Last Opened Quick Pick", |
|
10984 | 10989 | "command": "gitlens.showFileHistoryView", |
10985 | 10990 | "when": "gitlens:enabled" |
10986 | 10991 | }, |
| 10992 | + { |
| 10993 | + "command": "gitlens.showFileInTimeline", |
| 10994 | + "when": "gitlens:enabled && resource in gitlens:tabs:tracked" |
| 10995 | + }, |
| 10996 | + { |
| 10997 | + "command": "gitlens.showFolderInTimeline", |
| 10998 | + "when": "false" |
| 10999 | + }, |
10987 | 11000 | { |
10988 | 11001 | "command": "gitlens.showGraph", |
10989 | 11002 | "when": "gitlens:enabled" |
|
11008 | 11021 | "command": "gitlens.showInDetailsView", |
11009 | 11022 | "when": "false" |
11010 | 11023 | }, |
11011 | | - { |
11012 | | - "command": "gitlens.showInTimeline", |
11013 | | - "when": "gitlens:enabled && resource in gitlens:tabs:tracked" |
11014 | | - }, |
11015 | 11024 | { |
11016 | 11025 | "command": "gitlens.showLastQuickPick", |
11017 | 11026 | "when": "gitlens:enabled" |
|
13143 | 13152 | "group": "4_t_gitlens@1" |
13144 | 13153 | }, |
13145 | 13154 | { |
13146 | | - "submenu": "gitlens/explorer/history", |
| 13155 | + "submenu": "gitlens/explorer/file/history", |
| 13156 | + "when": "gitlens:enabled && config.gitlens.menus.explorer.history", |
| 13157 | + "group": "4_timeline@0" |
| 13158 | + }, |
| 13159 | + { |
| 13160 | + "submenu": "gitlens/explorer/folder/history", |
13147 | 13161 | "when": "gitlens:enabled && config.gitlens.menus.explorer.history", |
13148 | 13162 | "group": "4_timeline@0" |
13149 | 13163 | }, |
|
13384 | 13398 | "group": "1_gitlens@1" |
13385 | 13399 | }, |
13386 | 13400 | { |
13387 | | - "command": "gitlens.showInTimeline", |
| 13401 | + "command": "gitlens.showFileInTimeline", |
13388 | 13402 | "group": "1_gitlens@2" |
13389 | 13403 | }, |
13390 | 13404 | { |
|
13598 | 13612 | "group": "1_gitlens@1" |
13599 | 13613 | }, |
13600 | 13614 | { |
13601 | | - "command": "gitlens.showInTimeline", |
| 13615 | + "command": "gitlens.showFileInTimeline", |
13602 | 13616 | "group": "1_gitlens@2" |
13603 | 13617 | }, |
13604 | 13618 | { |
@@ -13707,19 +13721,14 @@ |
13707 | 13721 | "group": "1_gitlens@3" |
13708 | 13722 | } |
13709 | 13723 | ], |
13710 | | - "gitlens/explorer/history": [ |
| 13724 | + "gitlens/explorer/file/history": [ |
13711 | 13725 | { |
13712 | 13726 | "command": "gitlens.openFileHistory", |
13713 | 13727 | "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled", |
13714 | 13728 | "group": "1_gitlens@1" |
13715 | 13729 | }, |
13716 | 13730 | { |
13717 | | - "command": "gitlens.openFolderHistory", |
13718 | | - "when": "explorerResourceIsFolder && gitlens:enabled", |
13719 | | - "group": "1_gitlens@1" |
13720 | | - }, |
13721 | | - { |
13722 | | - "command": "gitlens.showInTimeline", |
| 13731 | + "command": "gitlens.showFileInTimeline", |
13723 | 13732 | "when": "!explorerResourceIsRoot && !explorerResourceIsFolder && gitlens:enabled", |
13724 | 13733 | "group": "1_gitlens@2" |
13725 | 13734 | }, |
|
13729 | 13738 | "group": "1_gitlens_quick@1" |
13730 | 13739 | } |
13731 | 13740 | ], |
| 13741 | + "gitlens/explorer/folder/history": [ |
| 13742 | + { |
| 13743 | + "command": "gitlens.openFolderHistory", |
| 13744 | + "group": "1_gitlens@1" |
| 13745 | + }, |
| 13746 | + { |
| 13747 | + "command": "gitlens.showFolderInTimeline", |
| 13748 | + "group": "1_gitlens@2" |
| 13749 | + } |
| 13750 | + ], |
13732 | 13751 | "gitlens/explorer/openOn": [ |
13733 | 13752 | { |
13734 | 13753 | "command": "gitlens.openFileOnRemote", |
|
13892 | 13911 | "group": "1_gitlens@1" |
13893 | 13912 | }, |
13894 | 13913 | { |
13895 | | - "command": "gitlens.showInTimeline", |
| 13914 | + "command": "gitlens.showFileInTimeline", |
13896 | 13915 | "group": "1_gitlens@2" |
13897 | 13916 | }, |
13898 | 13917 | { |
@@ -15478,12 +15497,12 @@ |
15478 | 15497 | }, |
15479 | 15498 | { |
15480 | 15499 | "command": "gitlens.views.collapseNode", |
15481 | | - "when": "viewItem =~ /gitlens:(branch|compare|folder|grouping|results|search|status|tag)\\b/ && !listMultiSelection", |
| 15500 | + "when": "viewItem =~ /gitlens:(branch|compare|folder|grouping|pseudo:folder|results|search|status|tag)\\b/ && !listMultiSelection", |
15482 | 15501 | "group": "9_gitlens@1" |
15483 | 15502 | }, |
15484 | 15503 | { |
15485 | 15504 | "command": "gitlens.views.expandNode", |
15486 | | - "when": "viewItem =~ /gitlens:(branch|compare|folder|grouping|results|search|status|tag)\\b/ && !listMultiSelection", |
| 15505 | + "when": "viewItem =~ /gitlens:(branch|compare|folder|grouping|pseudo:folder|results|search|status|tag)\\b/ && !listMultiSelection", |
15487 | 15506 | "group": "9_gitlens@2" |
15488 | 15507 | }, |
15489 | 15508 | { |
|
16112 | 16131 | "when": "viewItem =~ /gitlens:folder\\b(?=.*?\\b\\+working\\b)/ && !listMultiSelection && !gitlens:hasVirtualFolders && !gitlens:readonly && !gitlens:untrusted", |
16113 | 16132 | "group": "1_gitlens_actions@2" |
16114 | 16133 | }, |
| 16134 | + { |
| 16135 | + "submenu": "gitlens/explorer/folder/history", |
| 16136 | + "when": "viewItem =~ /gitlens:folder\\b/", |
| 16137 | + "group": "4_timeline@1" |
| 16138 | + }, |
16115 | 16139 | { |
16116 | 16140 | "command": "gitlens.views.openFile", |
16117 | 16141 | "when": "viewItem =~ /gitlens:(history:(file|line)|status:file)\\b/", |
|
18811 | 18835 | "label": "Open Changes" |
18812 | 18836 | }, |
18813 | 18837 | { |
18814 | | - "id": "gitlens/explorer/history", |
| 18838 | + "id": "gitlens/explorer/file/history", |
18815 | 18839 | "label": "File History" |
18816 | 18840 | }, |
| 18841 | + { |
| 18842 | + "id": "gitlens/explorer/folder/history", |
| 18843 | + "label": "Folder History" |
| 18844 | + }, |
18817 | 18845 | { |
18818 | 18846 | "id": "gitlens/explorer/openOn", |
18819 | 18847 | "label": "Open on Remote (Web)" |
|
0 commit comments