From 8111190d8456f4daca69c0530d2adcd3c70e666e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 10 Feb 2017 04:02:07 -0500 Subject: [PATCH] Adds shortcut keys for diff commands --- package.json | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9887f92..cf7a3f1 100644 --- a/package.json +++ b/package.json @@ -434,6 +434,12 @@ "when": "editorTextFocus" }, { + "command": "gitlens.toggleCodeLens", + "key": "alt+shift+b", + "mac": "alt+shift+b", + "when": "editorTextFocus" + }, + { "command": "gitlens.showQuickFileHistory", "key": "alt+h", "mac": "alt+h", @@ -445,9 +451,27 @@ "mac": "shift+alt+h" }, { - "command": "gitlens.toggleCodeLens", - "key": "alt+shift+b", - "mac": "alt+shift+b", + "command": "gitlens.diffLineWithPrevious", + "key": "alt+p", + "mac": "alt+p", + "when": "editorTextFocus" + }, + { + "command": "gitlens.diffWithPrevious", + "key": "shift+alt+p", + "mac": "shift+alt+p", + "when": "editorTextFocus" + }, + { + "command": "gitlens.diffLineWithWorking", + "key": "alt+w", + "mac": "alt+w", + "when": "editorTextFocus" + }, + { + "command": "gitlens.diffWithWorking", + "key": "shift+alt+w", + "mac": "shift+alt+w", "when": "editorTextFocus" } ]