Skip to content

Commit 68ec6e6

Browse files
committed
Changes chorded keymap keys to avoid Windows issues
1 parent c0f302e commit 68ec6e6

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8+
### Changed
9+
- Changes `chorded` keymap on Windows to use `Ctrl+Shift+G` rather than `Ctrl+Alt+G` to avoid [issues](https://blogs.msdn.microsoft.com/oldnewthing/20040329-00/?p=40003)
10+
- Also remaps `Show SCM` to `Ctrl+Shift+G G` since by default it is `Ctrl+Shift+G` if the `chorded` keymap is used
11+
812
### Fixed
913
- Fixes issue where GitLens wouldn't detect the creation of a Git repository if there were no other repositories open
1014
- Fixes issue where some GitLens commands would show in the palette even though there was no repository

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ While GitLens is highly customizable and provides many [configuration settings](
2828
|`gitlens.codeLens.enabled`|Specifies whether or not to provide any Git code lens, by default<br />Use the *Toggle Git Code Lens* command (`gitlens.toggleCodeLens`) to toggle the Git code lens on and off for the current session
2929
|`gitlens.gitExplorer.enabled`|Specifies whether or not to show the **GitLens** view
3030
|`gitlens.statusBar.enabled`|Specifies whether or not to provide blame information on the status bar
31-
|`gitlens.keymap`|Specifies the keymap to use for GitLens shortcut keys<br />`standard` - adds a standard set of shortcut keys<br />`chorded` - adds a chorded set of shortcut keys that all start with `Ctrl+Alt+G` (`⌥⌘G` on macOS)<br />`none` - no shortcut keys will be added
31+
|`gitlens.keymap`|Specifies the keymap to use for GitLens shortcut keys<br />`standard` - adds a standard set of shortcut keys<br />`chorded` - adds a chorded set of shortcut keys that all start with `Ctrl+Shift+G` (`⌥⌘G` on macOS)<br />`none` - no shortcut keys will be added
3232

3333
## Features
3434

@@ -389,7 +389,7 @@ GitLens is highly customizable and provides many configuration settings to allow
389389
|`gitlens.defaultDateStyle`|Specifies how dates will be displayed by default
390390
|`gitlens.defaultGravatarsStyle`|Specifies the style of the gravatar default (fallback) images<br />`identicon` - a geometric pattern<br />`mm` - (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash)<br />`monsterid` - a monster with different colors, faces, etc<br />`retro` - 8-bit arcade-style pixelated faces<br />`robohash` - a robot with different colors, faces, etc<br />`wavatar` - faces with differing features and backgrounds
391391
|`gitlens.insiders`|Opts into the insiders channel -- provides access to upcoming features
392-
|`gitlens.keymap`|Specifies the keymap to use for GitLens shortcut keys<br />`standard` - adds a standard set of shortcut keys<br />`chorded` - adds a chorded set of shortcut keys that all start with `Ctrl+Alt+G` (`⌥⌘G` on macOS)<br />`none` - no shortcut keys will be added
392+
|`gitlens.keymap`|Specifies the keymap to use for GitLens shortcut keys<br />`standard` - adds a standard set of shortcut keys<br />`chorded` - adds a chorded set of shortcut keys that all start with `Ctrl+Shift+G` (`⌥⌘G` on macOS)<br />`none` - no shortcut keys will be added
393393
|`gitlens.outputLevel`|Specifies how much (if any) output will be sent to the GitLens output channel
394394

395395
### Blame Settings

package.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,79 +3143,79 @@
31433143
},
31443144
{
31453145
"command": "gitlens.toggleFileBlame",
3146-
"key": "ctrl+alt+g b",
3146+
"key": "ctrl+shift+g b",
31473147
"mac": "cmd+alt+g b",
31483148
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsBlameable"
31493149
},
31503150
{
31513151
"command": "gitlens.toggleCodeLens",
3152-
"key": "ctrl+alt+g shift+b",
3152+
"key": "ctrl+shift+g shift+b",
31533153
"mac": "cmd+alt+g shift+b",
31543154
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked && gitlens:canToggleCodeLens"
31553155
},
31563156
{
31573157
"command": "gitlens.showLastQuickPick",
3158-
"key": "ctrl+alt+g -",
3158+
"key": "ctrl+shift+g -",
31593159
"mac": "cmd+alt+g -",
31603160
"when": "gitlens:keymap == chorded && gitlens:enabled"
31613161
},
31623162
{
31633163
"command": "gitlens.showCommitSearch",
3164-
"key": "ctrl+alt+g /",
3164+
"key": "ctrl+shift+g /",
31653165
"mac": "cmd+alt+g /",
31663166
"when": "gitlens:keymap == chorded && gitlens:enabled"
31673167
},
31683168
{
31693169
"command": "gitlens.showQuickFileHistory",
3170-
"key": "ctrl+alt+g h",
3170+
"key": "ctrl+shift+g h",
31713171
"mac": "cmd+alt+g h",
31723172
"when": "gitlens:keymap == chorded && gitlens:enabled"
31733173
},
31743174
{
31753175
"command": "gitlens.showQuickRepoHistory",
3176-
"key": "ctrl+alt+g shift+h",
3176+
"key": "ctrl+shift+g shift+h",
31773177
"mac": "cmd+alt+g shift+h",
31783178
"when": "gitlens:keymap == chorded && gitlens:enabled"
31793179
},
31803180
{
31813181
"command": "gitlens.showQuickRepoStatus",
3182-
"key": "ctrl+alt+g s",
3182+
"key": "ctrl+shift+g s",
31833183
"mac": "cmd+alt+g s",
31843184
"when": "gitlens:keymap == chorded && gitlens:enabled"
31853185
},
31863186
{
31873187
"command": "gitlens.showQuickCommitFileDetails",
3188-
"key": "ctrl+alt+g c",
3188+
"key": "ctrl+shift+g c",
31893189
"mac": "cmd+alt+g c",
31903190
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:enabled"
31913191
},
31923192
{
31933193
"command": "gitlens.diffWithNext",
3194-
"key": "ctrl+alt+g .",
3194+
"key": "ctrl+shift+g .",
31953195
"mac": "cmd+alt+g .",
31963196
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked"
31973197
},
31983198
{
31993199
"command": "gitlens.diffLineWithPrevious",
3200-
"key": "ctrl+alt+g shift+,",
3200+
"key": "ctrl+shift+g shift+,",
32013201
"mac": "cmd+alt+g shift+,",
32023202
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked"
32033203
},
32043204
{
32053205
"command": "gitlens.diffWithPrevious",
3206-
"key": "ctrl+alt+g ,",
3206+
"key": "ctrl+shift+g ,",
32073207
"mac": "cmd+alt+g ,",
32083208
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked"
32093209
},
32103210
{
32113211
"command": "gitlens.diffLineWithWorking",
3212-
"key": "ctrl+alt+g w",
3212+
"key": "ctrl+shift+g w",
32133213
"mac": "cmd+alt+g w",
32143214
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked"
32153215
},
32163216
{
32173217
"command": "gitlens.diffWithWorking",
3218-
"key": "ctrl+alt+g shift+w",
3218+
"key": "ctrl+shift+g shift+w",
32193219
"mac": "cmd+alt+g shift+w",
32203220
"when": "gitlens:keymap == chorded && editorTextFocus && gitlens:activeIsTracked"
32213221
},
@@ -3283,6 +3283,11 @@
32833283
"command": "gitlens.diffWithWorking",
32843284
"key": "shift+alt+w",
32853285
"when": "gitlens:keymap == standard && editorTextFocus && gitlens:activeIsTracked"
3286+
},
3287+
{
3288+
"command": "workbench.view.scm",
3289+
"key": "ctrl+shift+g g",
3290+
"when": "gitlens:keymap == chorded && gitlens:enabled"
32863291
}
32873292
],
32883293
"views": {

0 commit comments

Comments
 (0)