terminal: add Ctrl+Insert / Shift+Insert as copy-paste keyboard shortcuts (IDEA-247172)

GitOrigin-RevId: 0d22ad94c91b404fcdd1f6988992504a0fd0ec12
This commit is contained in:
Sergey Simonchik
2020-08-03 13:19:35 +03:00
committed by intellij-monorepo-bot
parent 1a3f0311a4
commit fd5c0d464b
2 changed files with 9 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ public abstract class KeymapsTestCase extends KeymapsTestCaseBase {
{ "control C", "$Copy", "Terminal.CopySelectedText", "org.jetbrains.r.console.RConsoleView.RInterruptAction"},
{ "control D", "EditorDuplicate", "Diff.ShowDiff", "CompareTwoFiles", "SendEOF", "FileChooser.GotoDesktop", "org.jetbrains.r.console.RConsoleView.REofAction"},
{ "control E", "RecentFiles", "SwitcherIterateItems", "SwitcherRecentEditedChangedToggleCheckBox", "Vcs.ShowMessageHistory"},
{ "control INSERT", "$Copy", "Terminal.CopySelectedText"},
{ "control L", "FindNext", "Vcs.Log.FocusTextFilter"},
{ "control M", "EditorScrollToCenter", "Vcs.ShowMessageHistory"},
{ "control N", "FileChooser.NewFolder", "GotoClass", "GotoChangedFile"},
@@ -89,6 +90,7 @@ public abstract class KeymapsTestCase extends KeymapsTestCaseBase {
{ "shift F4", "Debugger.EditTypeSource", "EditSourceInNewWindow"},
{ "shift F6", "RenameElement", "Git.Reword.Commit", "Git.Rename.Local.Branch", "ShelvedChanges.Rename", "ChangesView.Rename"},
{ "shift F7", "PreviousDiff", "SmartStepInto"},
{ "shift INSERT", "$Paste", "Terminal.Paste"},
{ "shift TAB", "PreviousTemplateVariable", "PrevParameter", "EditorUnindentSelection", "PrevTemplateParameter", "SearchEverywhere.PrevTab"},
{ "shift alt ENTER", "Console.TableResult.EditValueMaximized", "JupyterDebugAction"},
{ "shift alt LEFT", "Diff.ApplyRightSide", "PreviousEditorTab"},
@@ -405,6 +407,7 @@ public abstract class KeymapsTestCase extends KeymapsTestCaseBase {
{ "ctrl alt DOWN", "Console.TableResult.NextPage", "EditorCloneCaretBelow"},
{ "ctrl alt UP", "Console.TableResult.PreviousPage", "EditorCloneCaretAbove"},
{ "shift ENTER", "CollapseExpandableComponent", "Console.TableResult.EditValueMaximized", "DatabaseView.PropertiesAction", "EditorSplitLine", "ExpandExpandableComponent", "NotebookRunCellSelectBelowAction", "OpenElementInNewWindow", "RConsoleNextLineAction"},
{ "shift INSERT", "EditorPasteSimple", "Terminal.Paste"},
{ "shift ctrl D", "Console.TableResult.CompareCells", "EditorDuplicate", "Uml.ShowDiff"},
{ "shift ctrl M", "EditorSelectWord", "RInsertPipeAction"},
{ "shift ctrl DOWN", "MoveLineDown", "ResizeToolWindowDown"},

View File

@@ -49,14 +49,20 @@
<keyboard-shortcut first-keystroke="ESCAPE" keymap="$default"/>
</action>
<action id="Terminal.CopySelectedText" class="org.jetbrains.plugins.terminal.action.TerminalCopySelectedTextAction">
<!-- use keyboard-shortcuts of $Copy with Ctrl+Shift+C on Linux -->
<keyboard-shortcut first-keystroke="control shift C" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="control C" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="control INSERT" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="control C" keymap="$default"/>
<keyboard-shortcut first-keystroke="control INSERT" keymap="$default"/>
</action>
<action id="Terminal.Paste" class="org.jetbrains.plugins.terminal.action.TerminalPasteAction">
<!-- use keyboard-shortcuts of $Paste with Ctrl+Shift+V on Linux -->
<keyboard-shortcut first-keystroke="control shift V" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="control V" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="shift INSERT" keymap="Default for XWin"/>
<keyboard-shortcut first-keystroke="control V" keymap="$default"/>
<keyboard-shortcut first-keystroke="shift INSERT" keymap="$default"/>
</action>
<action id="Terminal.SmartCommandExecution.Run" class="org.jetbrains.plugins.terminal.shellCommandRunner.TerminalRunSmartCommandAction">
<keyboard-shortcut first-keystroke="control ENTER" keymap="$default"/>