mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 17:02:17 +00:00
feat(vcs): bind Git › Add to ⌥⌘A / Ctrl+Alt+A (#1159)
Git › Add (vcs.addToVcs) had no shortcut in the IntelliJ keymaps. It now uses ⌥⌘A on macOS and Ctrl+Alt+A on Windows/Linux, so it shows next to Add in the Git menus and works from the project view, editor and Commit view. On Windows the diff viewer's Apply Right Side keeps Ctrl+Alt+A while a diff is focused. The VS Code preset lists the action without a shortcut. Closes #1158
This commit is contained in:
1 parent
3d7768f47f
commit
cbc77941d4
4 files changed
+6
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
@@ -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"],
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user