"command": "gitlens.views.worktrees.setFilesLayoutToList", "when": "view =~ /^gitlens\\.views\\.worktrees/ && config.gitlens.views.worktrees.files.layout == auto", "group": "3_gitlens@1" }, { "command": "gitlens.views.worktrees.setFilesLayoutToTree", "when": "view =~ /^gitlens\\.views\\.worktrees/ && config.gitlens.views.worktrees.files.layout == list", "group": "3_gitlens@1" }, { "command": "gitlens.views.worktrees.setShowAvatarsOn", "when": "view =~ /^gitlens\\.views\\.worktrees/ && !config.gitlens.views.worktrees.avatars", "group": "5_gitlens@0" }, { "command": "gitlens.views.worktrees.setShowAvatarsOff", "when": "view =~ /^gitlens\\.views\\.worktrees/ && config.gitlens.views.worktrees.avatars", "group": "5_gitlens@0" }, { "command": "gitlens.views.worktrees.setShowBranchComparisonOn", "when": "view =~ /^gitlens\\.views\\.worktrees/ && !config.gitlens.views.worktrees.showBranchComparison", "group": "5_gitlens@1" }, { "command": "gitlens.views.worktrees.setShowBranchComparisonOff", "when": "view =~ /^gitlens\\.views\\.worktrees/ && config.gitlens.views.worktrees.showBranchComparison", "group": "5_gitlens@1" }, { "command": "gitlens.views.worktrees.setShowBranchPullRequestOn", "when": "view =~ /^gitlens\\.views\\.worktrees/ && !config.gitlens.views.worktrees.pullRequests.enabled && !config.gitlens.views.worktrees.pullRequests.showForBranches", "group": "5_gitlens@2" }, { "command": "gitlens.views.worktrees.setShowBranchPullRequestOff", "when": "view =~ /^gitlens\\.views\\.worktrees/ && config.gitlens.views.worktrees.pullRequests.enabled && config.gitlens.views.worktrees.pullRequests.showForBranches", "group": "5_gitlens@2" }, { "command": "gitlens.views.setShowRelativeDateMarkersOn", "when": "view =~ /^gitlens\\.views\\.(branches|commits|fileHistory|lineHistory|remotes|repositories|tags|worktrees)/ && !config.gitlens.views.showRelativeDateMarkers", "group": "5_gitlens@3" }, { "command": "gitlens.views.setShowRelativeDateMarkersOff", "when": "view =~ /^gitlens\\.views\\.(branches|commits|fileHistory|lineHistory|remotes|repositories|tags|worktrees)/ && config.gitlens.views.showRelativeDateMarkers", "group": "5_gitlens@3" }, { "submenu": "gitlens/graph/configuration", "when": "view =~ /^gitlens\\.views\\.graph\\b/", "group": "navigation@-98" }, { "command": "gitlens.showSettingsPage!branches-view", "when": "view =~ /^gitlens\\.views\\.branches/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!commits-view", "when": "view =~ /^gitlens\\.views\\.commits/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!contributors-view", "when": "view =~ /^gitlens\\.views\\.contributors/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!file-history-view", "when": "view =~ /^gitlens\\.views\\.fileHistory/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!line-history-view", "when": "view =~ /^gitlens\\.views\\.lineHistory/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!remotes-view", "when": "view =~ /^gitlens\\.views\\.remotes/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!repositories-view", "when": "view =~ /^gitlens\\.views\\.repositories/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!search-compare-view", "when": "view =~ /^gitlens\\.views\\.searchAndCompare\\b/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!stashes-view", "when": "view =~ /^gitlens\\.views\\.stashes/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!tags-view", "when": "view =~ /^gitlens\\.views\\.tags/", "group": "9_gitlens@1" }, { "command": "gitlens.showSettingsPage!worktrees-view", "when": "view =~ /^gitlens\\.views\\.worktrees/", "group": "9_gitlens@1" } ], "view/item/context": [ { "command": "gitlens.plus.login", "when": "viewItem == gitlens:message:signin", "group": "inline@1" }, { "command": "gitlens.views.draft.openOnWeb", "when": "viewItem =~ /gitlens:draft\\b/ && gitlens:plus", "group": "inline@99" }, { "command": "gitlens.views.draft.open", "when": "viewItem =~ /gitlens:draft\\b/ && gitlens:plus", "group": "1_gitlens_actions@1" }, { "command": "gitlens.views.draft.openOnWeb", "when": "viewItem =~ /gitlens:draft\\b/ && gitlens:plus", "group": "1_gitlens_actions@2" }, { "command": "gitlens.views.drafts.delete", "when": "viewItem =~ /gitlens:draft\\b(?=.*?\\b\\+mine\\b)/ && gitlens:plus", "group": "6_gitlens_actions@1" }, { "command": "gitlens.views.workspaces.convert", "when": "viewItem =~ /gitlens:repositories\\b(?=.*?\\b\\+workspaces\\b)/ && gitlens:plus", "group": "inline@1" }, { "command": "gitlens.views.workspaces.convert", "when": "viewItem =~ /gitlens:repositories\\b(?=.*?\\b\\+workspaces\\b)/ && gitlens:plus", "group": "1_gitlens_actions@1" }, { "command": "gitlens.views.workspaces.addRepos", "when": "viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+cloud\\b)/", "group": "inline@1" }, { "command": "gitlens.views.workspaces.locateAllRepos", "when": "viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+cloud\\b)(?!.*?\\b\\+empty\\b)/", "group": "inline@2" }, { "command": "gitlens.views.workspaces.createLocal", "when": "viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+current\\b)(?!.*?\\b\\+hasPath\\b)(?!.*?\\b\\+empty\\b)/", "group": "inline@3" }, { "command": "gitlens.views.workspaces.openLocalNewWindow", "when": "viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+current\\b)(?=.*?\\b\\+hasPath\\b)/", "group": "inline@3", "alt": "gitlens.views.workspaces.openLocal" }, { "command": "gitlens.views.workspaces.addRepos", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+cloud\\b)/", "group": "1_gitlens_actions@1" }, { "command": "gitlens.views.workspaces.locateAllRepos", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+cloud\\b)(?!.*?\\b\\+empty\\b)/", "group": "1_gitlens_actions@2" }, { "command": "gitlens.views.workspaces.addReposFromLinked", "when": "!listMultiSelection && viewItem =~ /gitlens:repositories\\b(?=.*?\\b\\+linked\\b)(?=.*?\\b\\+current\\b)/", "group": "1_gitlens_actions@3" }, { "command": "gitlens.views.workspaces.createLocal", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+empty\\b)/", "group": "2_gitlens_quickopen@3" }, { "command": "gitlens.views.workspaces.openLocal", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+current\\b)(?=.*?\\b\\+hasPath\\b)/", "group": "2_gitlens_quickopen@4" }, { "command": "gitlens.views.workspaces.openLocalNewWindow", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?!.*?\\b\\+current\\b)(?=.*?\\b\\+hasPath\\b)/", "group": "2_gitlens_quickopen@5" }, { "command": "gitlens.views.workspaces.changeAutoAddSetting", "when": "!listMultiSelection && viewItem =~ /(gitlens:workspace\\b(?=.*?\\b\\+(cloud|local)\\b)(?=.*?\\b\\+current\\b)(?=.*?\\b\\+hasPath\\b)|gitlens:repositories\\b(?=.*?\\b\\+linked\\b))/", "group": "2_gitlens_quickopen@6" }, { "command": "gitlens.views.workspaces.delete", "when": "!listMultiSelection && viewItem =~ /gitlens:workspace\\b(?=.*?\\b\\+cloud\\b)/", "group": "6_gitlens_actions@1" }, { "command": "gitlens.views.switchToAnotherBranch", "when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branches\\b(?!.*?\\b\\+closed\\b)/", "group": "inline@10" }, { "command": "gitlens.views.createBranch", "when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branches\\b(?!.*?\\b\\+closed\\b)/", "group": "inline@11" }, { "command": "gitlens.views.repositories.setBranchesLayoutToList", "when": "viewItem =~ /gitlens:branches\\b/ && config.gitlens.views.repositories.branches.layout == tree", "group": "inline@50" }, { "command": "gitlens.views.repositories.setBranchesLayoutToTree", "when": "viewItem =~ /gitlens:branches\\b/ && config.gitlens.views.repositories.branches.layout == list", "group": "inline@50" }, { "command": "gitlens.openBranchesOnRemote", "when": "viewItem =~ /gitlens:branches\\b(?=.*?\\b\\+remotes\\b)/", "group": "inline@98", "alt": "gitlens.copyRemoteBranchesUrl" }, { "command": "gitlens.views.switchToAnotherBranch", "when": "!listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branches\\b(?!.*?\\b\\+closed\\b)/", "group": "1_gitlens_actions@1" }, { "command": "gitlens.views.createBranch", "when": "!listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branches\\b(?!.*?\\b\\+closed\\b)/", "group": "1_gitlens_actions@2" }, { "command": "gitlens.openBranchesOnRemote", "when": "!listMultiSelection && viewItem =~ /gitlens:branches\\b(?=.*?\\b\\+remotes\\b)/", "group": "2_gitlens_quickopen@1" }, { "command": "gitlens.views.repositories.setBranchesShowBranchComparisonOn", "when": "!listMultiSelection && view =~ /^gitlens\\.views\\.repositories/ && viewItem =~ /gitlens:branches\\b/ && !config.gitlens.views.repositories.branches.showBranchComparison", "group": "8_gitlens_toggles@1" }, { "command": "gitlens.views.repositories.setBranchesShowBranchComparisonOff", "when": "!listMultiSelection && view =~ /^gitlens\\.views\\.repositories/ && viewItem =~ /gitlens:branches\\b/ && config.gitlens.views.repositories.branches.showBranchComparison", "group": "8_gitlens_toggles@1" }, { "command": "gitlens.views.switchToAnotherBranch", "when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+current\\b)(?!.*?\\b\\+closed\\b)/", "group": "inline@7" }, { "command": "gitlens.views.switchToBranch", "when": "!gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?!.*?\\b\\+(current|closed|checkedout|worktree)\\b)/", "group": "inline@7" }, { "command": "gitlens.views.openWorktree", "when": "!gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+worktree\\b)(?!.*?\\b\\+(current|closed|opened)\\b)/", "group": "inline@7", "alt": "gitlens.views.openWorktreeInNewWindow" }, { "command": "gitlens.views.publishBranch", "when": "gitlens:repos:withRemotes && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?!.*?\\b\\+(closed|remote|tracking)\\b)/", "group": "inline@8" }, { "command": "gitlens.views.push", "when": "gitlens:repos:withRemotes && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+ahead\\b)(?!.*?\\b\\+(behind|closed)\\b)/", "group": "inline@8" }, { "command": "gitlens.views.pull", "when": "gitlens:repos:withRemotes && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && viewItem =~ /gitlens:branch\\b(?=.*?\\b\\+behind\\b)(?!.*?\\b\\+closed\\b)/", "