Skip to content

Commit

Permalink
Adds multi-select on Graph (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Apr 4, 2024
1 parent d006996 commit da5a1f2
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 84 deletions.
43 changes: 36 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8369,6 +8369,12 @@
"category": "GitLens",
"icon": "$(copy)"
},
{
"command": "gitlens.graph.copyRemoteCommitUrl.multi",
"title": "Copy Remote Commit URLs",
"category": "GitLens",
"icon": "$(copy)"
},
{
"command": "gitlens.graph.showInDetailsView",
"title": "Open Details",
Expand All @@ -8386,6 +8392,12 @@
"category": "GitLens",
"icon": "$(globe)"
},
{
"command": "gitlens.graph.openCommitOnRemote.multi",
"title": "Open Commits on Remote",
"category": "GitLens",
"icon": "$(globe)"
},
{
"command": "gitlens.graph.rebaseOntoCommit",
"title": "Rebase Current Branch onto Commit...",
Expand Down Expand Up @@ -11317,6 +11329,10 @@
"command": "gitlens.graph.copyRemoteCommitUrl",
"when": "false"
},
{
"command": "gitlens.graph.copyRemoteCommitUrl.multi",
"when": "false"
},
{
"command": "gitlens.graph.showInDetailsView",
"when": "false"
Expand All @@ -11325,6 +11341,10 @@
"command": "gitlens.graph.openCommitOnRemote",
"when": "false"
},
{
"command": "gitlens.graph.openCommitOnRemote.multi",
"when": "false"
},
{
"command": "gitlens.graph.rebaseOntoCommit",
"when": "false"
Expand Down Expand Up @@ -14754,24 +14774,28 @@
},
{
"submenu": "gitlens/graph/commit/changes",
"when": "webviewItem =~ /gitlens:(commit|stash|wip)\\b/",
"when": "!listMultiSelection && webviewItem =~ /gitlens:(commit|stash|wip)\\b/",
"group": "2_gitlens_quickopen@1"
},
{
"command": "gitlens.graph.showInDetailsView",
"when": "webviewItem =~ /gitlens:(commit|stash|wip)\\b/",
"when": "!listMultiSelection && webviewItem =~ /gitlens:(commit|stash|wip)\\b/",
"group": "3_gitlens_explore@0"
},
{
"command": "gitlens.graph.openSCM",
"when": "webviewItem == gitlens:wip",
"when": "!listMultiSelection && webviewItem == gitlens:wip",
"group": "3_gitlens_explore@1"
},
{
"command": "gitlens.graph.openCommitOnRemote",
"when": "!listMultiSelection && gitlens:hasRemotes && webviewItem =~ /gitlens:commit\\b/",
"group": "3_gitlens_explore@2",
"alt": "gitlens.copyRemoteCommitUrl"
"group": "3_gitlens_explore@2"
},
{
"command": "gitlens.graph.openCommitOnRemote.multi",
"when": "listMultiSelection && gitlens:hasRemotes && webviewItems =~ /gitlens:commit\\b/",
"group": "3_gitlens_explore@2"
},
{
"submenu": "gitlens/share",
Expand All @@ -14780,12 +14804,12 @@
},
{
"command": "gitlens.graph.copySha",
"when": "webviewItem =~ /gitlens:(branch|commit|stash|tag)\\b/",
"when": "!listMultiSelection && webviewItem =~ /gitlens:(branch|commit|stash|tag)\\b/",
"group": "7_gitlens_cutcopypaste@2"
},
{
"command": "gitlens.graph.copyMessage",
"when": "webviewItem =~ /gitlens:(branch|commit|stash|tag)\\b/",
"when": "!listMultiSelection && webviewItem =~ /gitlens:(branch|commit|stash|tag)\\b/",
"group": "7_gitlens_cutcopypaste@3"
},
{
Expand Down Expand Up @@ -15135,6 +15159,11 @@
"when": "!listMultiSelection && gitlens:hasRemotes && webviewItem =~ /gitlens:commit\\b/",
"group": "2_gitlens@25"
},
{
"command": "gitlens.graph.copyRemoteCommitUrl.multi",
"when": "listMultiSelection && gitlens:hasRemotes && webviewItems =~ /gitlens:commit\\b/",
"group": "2_gitlens@25"
},
{
"command": "gitlens.copyDeepLinkToRepo",
"when": "!listMultiSelection && viewItem =~ /gitlens:(branch\\b(?=.*?\\b\\+(remote|tracking)\\b)|remote|repo-folder|repository|status:upstream(?!:none))\\b/",
Expand Down
Loading

0 comments on commit da5a1f2

Please sign in to comment.