From 1b5f137addf59a29ac44308150fd7f636be59031 Mon Sep 17 00:00:00 2001 From: Ryan West Date: Wed, 2 Aug 2023 14:22:46 -0600 Subject: [PATCH 1/2] Add Documentation for New PSReadLine Option ViClipboardMode --- .../7.4/PSReadLine/Get-PSReadLineOption.md | 1 + .../7.4/PSReadLine/Set-PSReadLineOption.md | 28 +++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/reference/7.4/PSReadLine/Get-PSReadLineOption.md b/reference/7.4/PSReadLine/Get-PSReadLineOption.md index ad3417b858c..623cf4a4089 100644 --- a/reference/7.4/PSReadLine/Get-PSReadLineOption.md +++ b/reference/7.4/PSReadLine/Get-PSReadLineOption.md @@ -56,6 +56,7 @@ CompletionQueryItems : 100 MaximumKillRingCount : 10 ShowToolTips : True ViModeIndicator : None +ViClipboardMode : ViRegister WordDelimiters : ;:,.[]{}()/\|^&*-=+'"--- AnsiEscapeTimeout : 100 CommandColor : "`e[93m" diff --git a/reference/7.4/PSReadLine/Set-PSReadLineOption.md b/reference/7.4/PSReadLine/Set-PSReadLineOption.md index 879de2025d8..85e62b39651 100644 --- a/reference/7.4/PSReadLine/Set-PSReadLineOption.md +++ b/reference/7.4/PSReadLine/Set-PSReadLineOption.md @@ -24,8 +24,9 @@ Set-PSReadLineOption [-EditMode ] [-ContinuationPrompt ] [-His [-BellStyle ] [-CompletionQueryItems ] [-WordDelimiters ] [-HistorySearchCaseSensitive] [-HistorySaveStyle ] [-HistorySavePath ] [-AnsiEscapeTimeout ] [-PromptText ] [-ViModeIndicator ] - [-ViModeChangeHandler ] [-PredictionSource ] - [-PredictionViewStyle ] [-Colors ] [] + [-ViModeChangeHandler ] [-ViClipboardMode ] + [-PredictionSource ] [-PredictionViewStyle ] + [-Colors ] [] ``` ## DESCRIPTION @@ -748,6 +749,29 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ViClipboardMode + +This option determines whether the local clipboard or system clipboard is used for copy and paste +operations while in the **Vi Edit Mode**. + +The valid values are as follows: +- **ViRegister**: The default value. Copy and paste with **Vi** keys is isolated to the current prompt. + Using **Vi** keys, text cannot be copied and pasted between windows, panes, or external applications. +- **SystemClipboard**: Copy and paste with **Vi** keys uses the system clipboard. Using **Vi** keys, + text can be copied and pasted between windows, panes, and external applications. + +```yaml +Type: Microsoft.PowerShell.ViClipboardMode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ViModeChangeHandler When the **ViModeIndicator** is set to `Script`, the script block provided will be invoked every From 5a54b78dbcc9c990e408628d99b228f795559116 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Mon, 7 Aug 2023 08:24:57 -0500 Subject: [PATCH 2/2] Update Set-PSReadLineOption.md Minor edits --- reference/7.4/PSReadLine/Set-PSReadLineOption.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/reference/7.4/PSReadLine/Set-PSReadLineOption.md b/reference/7.4/PSReadLine/Set-PSReadLineOption.md index 85e62b39651..bcee14bfbc4 100644 --- a/reference/7.4/PSReadLine/Set-PSReadLineOption.md +++ b/reference/7.4/PSReadLine/Set-PSReadLineOption.md @@ -754,12 +754,15 @@ Accept wildcard characters: False This option determines whether the local clipboard or system clipboard is used for copy and paste operations while in the **Vi Edit Mode**. -The valid values are as follows: -- **ViRegister**: The default value. Copy and paste with **Vi** keys is isolated to the current prompt. - Using **Vi** keys, text cannot be copied and pasted between windows, panes, or external applications. -- **SystemClipboard**: Copy and paste with **Vi** keys uses the system clipboard. Using **Vi** keys, +The valid values are: + +- **ViRegister**: The default value. Copy and paste with **Vi** keys are isolated to the current + prompt. Using **Vi** keys, text cannot be copied and pasted between windows, panes, or external + applications. +- **SystemClipboard**: Copy and paste with **Vi** keys use the system clipboard. Using **Vi** keys, text can be copied and pasted between windows, panes, and external applications. + ```yaml Type: Microsoft.PowerShell.ViClipboardMode Parameter Sets: (All) @@ -767,7 +770,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: ViRegister Accept pipeline input: False Accept wildcard characters: False ```