Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

feat(vcs): bind Git › Add to ⌥⌘A / Ctrl+Alt+A (#1159)

l0ng-aicbc77941d440
diff --git a/src/platform/keymaps/ideaParity.test.ts b/src/platform/keymaps/ideaParity.test.ts
index 31a77539b..6478c9fc2 100644
--- a/src/platform/keymaps/ideaParity.test.ts
+++ b/src/platform/keymaps/ideaParity.test.ts
@@ -21,6 +21,8 @@ describe("IDEA keymap parity", () => {
["vcs.branches", [], ["Ctrl+Shift+`"]],
// Git.CreateNewBranch shares Inline's shortcut.
["vcs.newBranch", ["Meta+Alt+N"], ["Ctrl+Alt+N"]],
+ // ChangesView.AddUnversioned; on Windows the diff viewer's Apply Right Side wins while a diff is focused.
+ ["vcs.addToVcs", ["Meta+Alt+A"], ["Ctrl+Alt+A"]],
["refactor.inline", ["Meta+Alt+N"], ["Ctrl+Alt+N"]],
["debug.resume", ["Meta+Alt+R", "F9"], ["F9"]],
["code.quickDefinition", ["Alt+Space", "Meta+Y"], ["Ctrl+Shift+I"]],
@@ -104,5 +106,6 @@ describe("IDEA keymap parity", () => {
order(km, "find.inFile", "vcs.log.goToRef");
// Inline (text editor only) wins over New Branch.
order(km, "vcs.newBranch", "refactor.inline");
+ order(km, "vcs.addToVcs", "diff.applyRightSide");
});
});
diff --git a/src/platform/keymaps/intellij-macos.ts b/src/platform/keymaps/intellij-macos.ts
index ac2f47707..1527ac59d 100644
--- a/src/platform/keymaps/intellij-macos.ts
+++ b/src/platform/keymaps/intellij-macos.ts
@@ -296,6 +296,7 @@ export const intellijMacos: Record<string, string[]> = {
"vcs.showMessageHistory": ["Ctrl+M"],
"vcs.update": ["Meta+T"],
"vcs.rollback": ["Meta+Alt+Z"],
+ "vcs.addToVcs": ["Meta+Alt+A"],
"vcs.showDiff": ["Meta+D"],
"vcs.nextChange": ["Ctrl+Alt+Shift+Down"],
"vcs.prevChange": ["Ctrl+Alt+Shift+Up"],
diff --git a/src/platform/keymaps/intellij-windows.ts b/src/platform/keymaps/intellij-windows.ts
index 1d00b9601..0155816f7 100644
--- a/src/platform/keymaps/intellij-windows.ts
+++ b/src/platform/keymaps/intellij-windows.ts
@@ -290,6 +290,7 @@ export const intellijWindows: Record<string, string[]> = {
"vcs.showMessageHistory": ["Ctrl+M"],
"vcs.update": ["Ctrl+T"],
"vcs.rollback": ["Ctrl+Alt+Z"],
+ "vcs.addToVcs": ["Ctrl+Alt+A"],
"vcs.showDiff": ["Ctrl+D"],
"vcs.nextChange": ["Ctrl+Alt+Shift+Down"],
"vcs.prevChange": ["Ctrl+Alt+Shift+Up"],
diff --git a/src/platform/keymaps/vscode-macos.ts b/src/platform/keymaps/vscode-macos.ts
index 1608c8b10..602a4b999 100644
--- a/src/platform/keymaps/vscode-macos.ts
+++ b/src/platform/keymaps/vscode-macos.ts
@@ -291,6 +291,7 @@ export const vscodeMacos: Record<string, string[]> = {
"vcs.showMessageHistory": [],
"vcs.update": [],
"vcs.rollback": [],
+ "vcs.addToVcs": [],
"vcs.showDiff": [],
"vcs.nextChange": ["Alt+F5"],
"vcs.prevChange": ["Alt+Shift+F5"],