From 938b098c7bdbb553b2d14ab1482b32f1b979ebf5 Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Mon, 27 Oct 2025 12:12:12 +0200 Subject: [PATCH] [terminal] IJPL-215236 Refactor: rename terminal command completion up/down actions Inherit editor's shortcuts instead of defining our own. Give them consistent action IDs Give them more meaningful user-visible action names. Add text override for Search Everywhere. GitOrigin-RevId: 71ba0395c21fa1c0cd0513d9a56e265123ec9795 --- .../src/com/intellij/keymap/KeymapsTestCase.java | 4 ++-- .../frontend/resources/intellij.terminal.frontend.xml | 10 ++++++---- .../frontend/view/impl/TerminalEventDispatcher.kt | 4 ++-- .../resources/messages/TerminalBundle.properties | 6 ++++-- .../frontend/completion/TerminalCompletionFixture.kt | 4 ++-- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/platform/testFramework/extensions/src/com/intellij/keymap/KeymapsTestCase.java b/platform/testFramework/extensions/src/com/intellij/keymap/KeymapsTestCase.java index 05284454c4a3..0b68ede80da8 100644 --- a/platform/testFramework/extensions/src/com/intellij/keymap/KeymapsTestCase.java +++ b/platform/testFramework/extensions/src/com/intellij/keymap/KeymapsTestCase.java @@ -20,7 +20,7 @@ public abstract class KeymapsTestCase extends KeymapsTestCaseBase { {"BACK_SPACE", "EditorBackSpace", "FileChooser.GoToParent"}, {"C", "Uml.CollapseNodes", "JupyterNotebookCopyCellCommandModeAction"}, {"DELETE", "$Delete", "DatabaseView.DropAction", "JupyterNotebookDeleteCellCommandModeAction"}, - {"DOWN", "EditorDown", "Terminal.SelectBlockBelow", "Terminal.DownCommandCompletion", "JupyterSelectCellBelowCommandModeAction"}, + {"DOWN", "EditorDown", "Terminal.SelectBlockBelow", "JupyterSelectCellBelowCommandModeAction"}, {"ENTER", "Console.Execute", "Console.TableResult.EditValue", "DirDiffMenu.SynchronizeDiff", "EditorChooseLookupItem", "EditorEnter", "NextTemplateVariable", "Git.Log.Branches.Change.Branch.Filter", "SplitChooser.Split", "JupyterMarkdownDestroyControllerAction", "Console.TableResult.GotoReferencedResult"}, @@ -41,7 +41,7 @@ public abstract class KeymapsTestCase extends KeymapsTestCaseBase { "EditorTab", "ExpandLiveTemplateByTab", "BraceOrQuoteOut", "SplitChooser.NextWindow", "InsertInlineCompletionAction", "Terminal.CommandCompletion", "CodeFloatingToolbar.GotoNextMenu", "AIAssistant.Editor.AcceptOneLineCompletion", "InlinePromptGenerateCodeAction", "InsertNextEditAction"}, - {"UP", "EditorUp", "Terminal.SelectBlockAbove", "Terminal.UpCommandCompletion", "JupyterSelectCellAboveCommandModeAction"}, + {"UP", "EditorUp", "Terminal.SelectBlockAbove", "JupyterSelectCellAboveCommandModeAction"}, {"alt DOWN", "MethodDown", "ShowContent", "ShowSearchHistory", "JupyterNotebookMoveCellDownCommandModeAction", "NotebookMoveCellDownAction"}, {"alt ENTER", "ShowIntentionActions", "Console.TableResult.EditValue", "JupyterNotebookRunCellInsertBelowCommandModeAction", "Console.TableResult.GotoReferencedResult"}, diff --git a/plugins/terminal/frontend/resources/intellij.terminal.frontend.xml b/plugins/terminal/frontend/resources/intellij.terminal.frontend.xml index 72873b3bcafe..3878f854fa42 100644 --- a/plugins/terminal/frontend/resources/intellij.terminal.frontend.xml +++ b/plugins/terminal/frontend/resources/intellij.terminal.frontend.xml @@ -96,11 +96,13 @@ use-shortcut-of="EditorChooseLookupItem"> - - + + - - + +