feat(terminal): add an optional Paste on right click (#6825)

Settings › Tools › Terminal gains Paste on right click (terminal.rightClickPaste, off by default). When on, a plain right-click in a terminal pane pastes the clipboard through the same path as Paste and middle-click paste, so bracketed paste and multiline handling are unchanged; Ctrl or Shift + right-click still opens the context menu, and focus stays in the pane.

Fixes #6634
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-29 16:55:39 +08:00
1 джерело 4812d28614
коміт db266643aa
11 files changed
+60

No files matched your search

+1
Переглянути файл
@@ -64,6 +64,7 @@ export const CLIENT_SETTINGS_KEYS = [
"terminal.mouseReporting",
"terminal.copyOnSelection",
"terminal.pasteOnMiddleClick",
"terminal.rightClickPaste",
"terminal.overrideIdeShortcuts",
"terminal.highlightHyperlinks",
"terminal.runCommandsUsingIde",
+1
Переглянути файл
@@ -2220,6 +2220,7 @@
"Password:": "密碼:",
"Password already stored": "已儲存密碼",
"Paste": "貼上",
"Paste on right click": "按右鍵時貼上",
"Paste on middle mouse button click": "點選滑鼠中鍵時貼上",
"Patch copied to the clipboard": "補丁已複製到剪貼簿",
"Patch destination": "補丁目標",
+1
Переглянути файл
@@ -2794,6 +2794,7 @@
"Password:": "密码:",
"Password already stored": "已存储密码",
"Paste": "粘贴",
"Paste on right click": "右键单击时粘贴",
"Paste on middle mouse button click": "点击鼠标中键时粘贴",
"Patch copied to the clipboard": "补丁已复制到剪贴板",
"Patch destination": "补丁目标",
+4
Переглянути файл
@@ -205,6 +205,8 @@ export interface TerminalSettingsValid {
mouseReporting: boolean;
copyOnSelection: boolean;
pasteOnMiddleClick: boolean;
/** Right-click pastes instead of opening the context menu (Ctrl or Shift + right-click still opens it). */
rightClickPaste: boolean;
overrideIdeShortcuts: boolean;
shellIntegration: boolean;
highlightHyperlinks: boolean;
@@ -441,6 +443,7 @@ export const DEFAULT_WORKFLOW: WorkflowSettings = {
mouseReporting: true,
copyOnSelection: false,
pasteOnMiddleClick: true,
rightClickPaste: false,
overrideIdeShortcuts: true,
shellIntegration: true,
highlightHyperlinks: true,
@@ -686,6 +689,7 @@ export function validateTerminal(raw: unknown): TerminalSettingsValid {
mouseReporting: bool(v.mouseReporting, d.mouseReporting),
copyOnSelection: bool(v.copyOnSelection, d.copyOnSelection),
pasteOnMiddleClick: bool(v.pasteOnMiddleClick, d.pasteOnMiddleClick),
rightClickPaste: bool(v.rightClickPaste, d.rightClickPaste),
overrideIdeShortcuts: bool(v.overrideIdeShortcuts, d.overrideIdeShortcuts),
shellIntegration: bool(v.shellIntegration, d.shellIntegration),
highlightHyperlinks: bool(v.highlightHyperlinks, d.highlightHyperlinks),