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..bcee14bfbc4 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,32 @@ 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: + +- **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) +Aliases: + +Required: False +Position: Named +Default value: ViRegister +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ViModeChangeHandler When the **ViModeIndicator** is set to `Script`, the script block provided will be invoked every