Skip to content

Commit 3006e40

Browse files
committed
Moves common actions out of the commit submenu
1 parent c13f1d7 commit 3006e40

File tree

1 file changed

+24
-29
lines changed

1 file changed

+24
-29
lines changed

package.json

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7232,13 +7232,13 @@
72327232
"alt": "gitlens.copyRemoteCommitUrl"
72337233
},
72347234
{
7235-
"command": "gitlens.showCommitInView",
7236-
"when": "viewItem =~ /gitlens:commit\\b/",
7235+
"command": "gitlens.revealCommitInView",
7236+
"when": "view =~ /gitlens\\.views\\.(?!commits|branches\\b)/ && viewItem =~ /gitlens:commit\\b/",
72377237
"group": "3_gitlens_explore@2"
72387238
},
72397239
{
7240-
"command": "gitlens.revealCommitInView",
7241-
"when": "view =~ /gitlens\\.views\\.(?!commits|branches\\b)/ && viewItem =~ /gitlens:commit\\b/",
7240+
"command": "gitlens.showCommitInView",
7241+
"when": "viewItem =~ /gitlens:commit\\b/",
72427242
"group": "3_gitlens_explore@3"
72437243
},
72447244
{
@@ -7300,6 +7300,11 @@
73007300
"group": "inline@99",
73017301
"alt": "gitlens.copyRemoteFileUrlToClipboard"
73027302
},
7303+
{
7304+
"submenu": "gitlens/commit/file/commit",
7305+
"when": "!gitlens:readonly && view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
7306+
"group": "1_gitlens_actions@0"
7307+
},
73037308
{
73047309
"command": "gitlens.views.stageFile",
73057310
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)/",
@@ -7347,9 +7352,20 @@
73477352
"group": "2_gitlens_quickopen@6"
73487353
},
73497354
{
7350-
"submenu": "gitlens/commit/file/commit",
7351-
"when": "!gitlens:readonly && view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
7352-
"group": "3_gitlens_explore@0"
7355+
"command": "gitlens.openCommitOnRemote",
7356+
"when": "view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes",
7357+
"group": "3_gitlens_explore@0",
7358+
"alt": "gitlens.copyRemoteCommitUrl"
7359+
},
7360+
{
7361+
"command": "gitlens.revealCommitInView",
7362+
"when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
7363+
"group": "3_gitlens_explore@2"
7364+
},
7365+
{
7366+
"command": "gitlens.showCommitInView",
7367+
"when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
7368+
"group": "3_gitlens_explore@3"
73537369
},
73547370
{
73557371
"command": "gitlens.views.applyChanges",
@@ -7478,7 +7494,7 @@
74787494
},
74797495
{
74807496
"submenu": "gitlens/commit/browse",
7481-
"when": "viewItem =~ /gitlens:(branch|commit|stash|tag)\\b/",
7497+
"when": "viewItem =~ /gitlens:(branch|commit|file\\b(?=.*?\\b\\+committed\\b)|stash|tag)\\b/",
74827498
"group": "3_gitlens_explore@1"
74837499
},
74847500
{
@@ -8007,27 +8023,6 @@
80078023
"command": "gitlens.views.createTag",
80088024
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
80098025
"group": "1_gitlens_actions_1@2"
8010-
},
8011-
{
8012-
"command": "gitlens.openCommitOnRemote",
8013-
"when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes",
8014-
"group": "3_gitlens_explore@0",
8015-
"alt": "gitlens.copyRemoteCommitUrl"
8016-
},
8017-
{
8018-
"submenu": "gitlens/commit/browse",
8019-
"when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
8020-
"group": "3_gitlens_explore@1"
8021-
},
8022-
{
8023-
"command": "gitlens.showCommitInView",
8024-
"when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
8025-
"group": "3_gitlens_explore@3"
8026-
},
8027-
{
8028-
"command": "gitlens.revealCommitInView",
8029-
"when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/",
8030-
"group": "3_gitlens_explore@4"
80318026
}
80328027
],
80338028
"gitlens/commit/file/openChanges": [

0 commit comments

Comments
 (0)