Skip to content

Commit 47038c9

Browse files
committed
Fixes copy shortcut key on grouped views
1 parent 9dfce15 commit 47038c9

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

contributions.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5947,7 +5947,7 @@
59475947
"keybindings": [
59485948
{
59495949
"key": "ctrl+c",
5950-
"when": "focusedView == gitlens.views.branches",
5950+
"when": "focusedView == gitlens.views.branches || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == branches)",
59515951
"mac": "cmd+c"
59525952
}
59535953
]
@@ -6753,7 +6753,7 @@
67536753
"keybindings": [
67546754
{
67556755
"key": "ctrl+c",
6756-
"when": "focusedView == gitlens.views.commits",
6756+
"when": "focusedView == gitlens.views.commits || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == commits)",
67576757
"mac": "cmd+c"
67586758
}
67596759
]
@@ -7538,7 +7538,7 @@
75387538
"keybindings": [
75397539
{
75407540
"key": "ctrl+c",
7541-
"when": "focusedView == gitlens.views.contributors",
7541+
"when": "focusedView == gitlens.views.contributors || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == contributors)",
75427542
"mac": "cmd+c"
75437543
}
75447544
]
@@ -8623,7 +8623,7 @@
86238623
"keybindings": [
86248624
{
86258625
"key": "ctrl+c",
8626-
"when": "focusedView == gitlens.views.fileHistory",
8626+
"when": "focusedView == gitlens.views.fileHistory || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == fileHistory)",
86278627
"mac": "cmd+c"
86288628
}
86298629
]
@@ -9391,7 +9391,7 @@
93919391
"keybindings": [
93929392
{
93939393
"key": "ctrl+c",
9394-
"when": "focusedView == gitlens.views.launchpad",
9394+
"when": "focusedView == gitlens.views.launchpad || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == launchpad)",
93959395
"mac": "cmd+c"
93969396
}
93979397
]
@@ -10889,7 +10889,7 @@
1088910889
"keybindings": [
1089010890
{
1089110891
"key": "ctrl+c",
10892-
"when": "focusedView == gitlens.views.remotes",
10892+
"when": "focusedView == gitlens.views.remotes || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == remotes)",
1089310893
"mac": "cmd+c"
1089410894
}
1089510895
]
@@ -11317,7 +11317,7 @@
1131711317
"keybindings": [
1131811318
{
1131911319
"key": "ctrl+c",
11320-
"when": "focusedView == gitlens.views.repositories",
11320+
"when": "focusedView == gitlens.views.repositories || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == repositories)",
1132111321
"mac": "cmd+c"
1132211322
}
1132311323
]
@@ -13552,7 +13552,7 @@
1355213552
"keybindings": [
1355313553
{
1355413554
"key": "ctrl+c",
13555-
"when": "focusedView == gitlens.views.searchAndCompare",
13555+
"when": "focusedView == gitlens.views.searchAndCompare || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == searchAndCompare)",
1355613556
"mac": "cmd+c"
1355713557
}
1355813558
]
@@ -14565,7 +14565,7 @@
1456514565
"keybindings": [
1456614566
{
1456714567
"key": "ctrl+c",
14568-
"when": "focusedView == gitlens.views.stashes",
14568+
"when": "focusedView == gitlens.views.stashes || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == stashes)",
1456914569
"mac": "cmd+c"
1457014570
}
1457114571
]
@@ -14871,7 +14871,7 @@
1487114871
"keybindings": [
1487214872
{
1487314873
"key": "ctrl+c",
14874-
"when": "focusedView == gitlens.views.tags",
14874+
"when": "focusedView == gitlens.views.tags || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == tags)",
1487514875
"mac": "cmd+c"
1487614876
}
1487714877
]
@@ -15678,7 +15678,7 @@
1567815678
"keybindings": [
1567915679
{
1568015680
"key": "ctrl+c",
15681-
"when": "focusedView == gitlens.views.worktrees",
15681+
"when": "focusedView == gitlens.views.worktrees || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == worktrees)",
1568215682
"mac": "cmd+c"
1568315683
}
1568415684
]

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24105,19 +24105,19 @@
2410524105
{
2410624106
"command": "gitlens.views.branches.copy",
2410724107
"key": "ctrl+c",
24108-
"when": "focusedView == gitlens.views.branches",
24108+
"when": "focusedView == gitlens.views.branches || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == branches)",
2410924109
"mac": "cmd+c"
2411024110
},
2411124111
{
2411224112
"command": "gitlens.views.commits.copy",
2411324113
"key": "ctrl+c",
24114-
"when": "focusedView == gitlens.views.commits",
24114+
"when": "focusedView == gitlens.views.commits || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == commits)",
2411524115
"mac": "cmd+c"
2411624116
},
2411724117
{
2411824118
"command": "gitlens.views.contributors.copy",
2411924119
"key": "ctrl+c",
24120-
"when": "focusedView == gitlens.views.contributors",
24120+
"when": "focusedView == gitlens.views.contributors || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == contributors)",
2412124121
"mac": "cmd+c"
2412224122
},
2412324123
{
@@ -24129,13 +24129,13 @@
2412924129
{
2413024130
"command": "gitlens.views.fileHistory.copy",
2413124131
"key": "ctrl+c",
24132-
"when": "focusedView == gitlens.views.fileHistory",
24132+
"when": "focusedView == gitlens.views.fileHistory || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == fileHistory)",
2413324133
"mac": "cmd+c"
2413424134
},
2413524135
{
2413624136
"command": "gitlens.views.launchpad.copy",
2413724137
"key": "ctrl+c",
24138-
"when": "focusedView == gitlens.views.launchpad",
24138+
"when": "focusedView == gitlens.views.launchpad || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == launchpad)",
2413924139
"mac": "cmd+c"
2414024140
},
2414124141
{
@@ -24153,13 +24153,13 @@
2415324153
{
2415424154
"command": "gitlens.views.remotes.copy",
2415524155
"key": "ctrl+c",
24156-
"when": "focusedView == gitlens.views.remotes",
24156+
"when": "focusedView == gitlens.views.remotes || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == remotes)",
2415724157
"mac": "cmd+c"
2415824158
},
2415924159
{
2416024160
"command": "gitlens.views.repositories.copy",
2416124161
"key": "ctrl+c",
24162-
"when": "focusedView == gitlens.views.repositories",
24162+
"when": "focusedView == gitlens.views.repositories || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == repositories)",
2416324163
"mac": "cmd+c"
2416424164
},
2416524165
{
@@ -24215,19 +24215,19 @@
2421524215
{
2421624216
"command": "gitlens.views.searchAndCompare.copy",
2421724217
"key": "ctrl+c",
24218-
"when": "focusedView == gitlens.views.searchAndCompare",
24218+
"when": "focusedView == gitlens.views.searchAndCompare || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == searchAndCompare)",
2421924219
"mac": "cmd+c"
2422024220
},
2422124221
{
2422224222
"command": "gitlens.views.stashes.copy",
2422324223
"key": "ctrl+c",
24224-
"when": "focusedView == gitlens.views.stashes",
24224+
"when": "focusedView == gitlens.views.stashes || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == stashes)",
2422524225
"mac": "cmd+c"
2422624226
},
2422724227
{
2422824228
"command": "gitlens.views.tags.copy",
2422924229
"key": "ctrl+c",
24230-
"when": "focusedView == gitlens.views.tags",
24230+
"when": "focusedView == gitlens.views.tags || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == tags)",
2423124231
"mac": "cmd+c"
2423224232
},
2423324233
{
@@ -24239,7 +24239,7 @@
2423924239
{
2424024240
"command": "gitlens.views.worktrees.copy",
2424124241
"key": "ctrl+c",
24242-
"when": "focusedView == gitlens.views.worktrees",
24242+
"when": "focusedView == gitlens.views.worktrees || (focusedView == gitlens.views.scm.grouped && gitlens:views:scm:grouped:view == worktrees)",
2424324243
"mac": "cmd+c"
2424424244
}
2424524245
],

0 commit comments

Comments
 (0)