Updates from: 02/13/2021 04:20:46
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Core https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_Comparison_Operators?view=powershell-5.1 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
@@ -467,7 +467,7 @@ In the following example, the `-replace` operator accepts a username in the form
of `DomainName\Username` and converts to the `Username@DomainName` format: ```powershell
-$SearchExp = '^(?<Username>[\w-.]+)\\(?<DomainName>[\w-.]+)$'
+$SearchExp = '^(?<DomainName>[\w-.]+)\\(?<Username>[\w-.]+)$'
$ReplaceExp = '${Username}@${DomainName}' 'Contoso.local\John.Doe' -replace $SearchExp,$ReplaceExp
@@ -484,8 +484,8 @@ John.Doe@Contoso.local
> - In PowerShell, between double quotation marks, it designates variables and > acts as a subexpression operator. > - In Regex search strings, it denotes end of the line
-> - In Regex substitution strings, it denotes captured groups As such, be sure
-> to to either put your regular expressions between single quotation marks or
+> - In Regex substitution strings, it denotes captured groups.Be sure
+> to either put your regular expressions between single quotation marks or
> insert a backtick (`` ` ``) character before them. For example:
@@ -501,7 +501,7 @@ $1 = 'Goodbye'
``` `$$` in Regex denotes a literal `$`. This `$$` in the substitution string to
-include a a literal `$` in the resulting replacement. For example:
+include a literal `$` in the resulting replacement. For example:
```powershell '5.72' -replace '(.+)', '$ $1' # Output: $ 5.72
Microsoft.PowerShell.Core https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_Comparison_Operators?view=powershell-7.0 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
@@ -467,7 +467,7 @@ In the following example, the `-replace` operator accepts a username in the form
of `DomainName\Username` and converts to the `Username@DomainName` format: ```powershell
-$SearchExp = '^(?<Username>[\w-.]+)\\(?<DomainName>[\w-.]+)$'
+$SearchExp = '^(?<DomainName>[\w-.]+)\\(?<Username>[\w-.]+)$'
$ReplaceExp = '${Username}@${DomainName}' 'Contoso.local\John.Doe' -replace $SearchExp,$ReplaceExp
@@ -484,8 +484,8 @@ John.Doe@Contoso.local
> - In PowerShell, between double quotation marks, it designates variables and > acts as a subexpression operator. > - In Regex search strings, it denotes end of the line
-> - In Regex substitution strings, it denotes captured groups As such, be sure
-> to to either put your regular expressions between single quotation marks or
+> - In Regex substitution strings, it denotes captured groups.Be sure
+> to either put your regular expressions between single quotation marks or
> insert a backtick (`` ` ``) character before them. For example:
@@ -501,7 +501,7 @@ $1 = 'Goodbye'
``` `$$` in Regex denotes a literal `$`. This `$$` in the substitution string to
-include a a literal `$` in the resulting replacement. For example:
+include a literal `$` in the resulting replacement. For example:
```powershell '5.72' -replace '(.+)', '$ $1' # Output: $ 5.72
Microsoft.PowerShell.Core https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_Comparison_Operators?view=powershell-7.1 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
@@ -467,7 +467,7 @@ In the following example, the `-replace` operator accepts a username in the form
of `DomainName\Username` and converts to the `Username@DomainName` format: ```powershell
-$SearchExp = '^(?<Username>[\w-.]+)\\(?<DomainName>[\w-.]+)$'
+$SearchExp = '^(?<DomainName>[\w-.]+)\\(?<Username>[\w-.]+)$'
$ReplaceExp = '${Username}@${DomainName}' 'Contoso.local\John.Doe' -replace $SearchExp,$ReplaceExp
@@ -484,8 +484,8 @@ John.Doe@Contoso.local
> - In PowerShell, between double quotation marks, it designates variables and > acts as a subexpression operator. > - In Regex search strings, it denotes end of the line
-> - In Regex substitution strings, it denotes captured groups As such, be sure
-> to to either put your regular expressions between single quotation marks or
+> - In Regex substitution strings, it denotes captured groups.Be sure
+> to either put your regular expressions between single quotation marks or
> insert a backtick (`` ` ``) character before them. For example:
@@ -501,7 +501,7 @@ $1 = 'Goodbye'
``` `$$` in Regex denotes a literal `$`. This `$$` in the substitution string to
-include a a literal `$` in the resulting replacement. For example:
+include a literal `$` in the resulting replacement. For example:
```powershell '5.72' -replace '(.+)', '$ $1' # Output: $ 5.72
Microsoft.PowerShell.Core https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_Comparison_Operators?view=powershell-7.2 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Comparison_Operators.md
@@ -467,7 +467,7 @@ In the following example, the `-replace` operator accepts a username in the form
of `DomainName\Username` and converts to the `Username@DomainName` format: ```powershell
-$SearchExp = '^(?<Username>[\w-.]+)\\(?<DomainName>[\w-.]+)$'
+$SearchExp = '^(?<DomainName>[\w-.]+)\\(?<Username>[\w-.]+)$'
$ReplaceExp = '${Username}@${DomainName}' 'Contoso.local\John.Doe' -replace $SearchExp,$ReplaceExp
@@ -484,8 +484,8 @@ John.Doe@Contoso.local
> - In PowerShell, between double quotation marks, it designates variables and > acts as a subexpression operator. > - In Regex search strings, it denotes end of the line
-> - In Regex substitution strings, it denotes captured groups As such, be sure
-> to to either put your regular expressions between single quotation marks or
+> - In Regex substitution strings, it denotes captured groups.Be sure
+> to either put your regular expressions between single quotation marks or
> insert a backtick (`` ` ``) character before them. For example:
@@ -501,7 +501,7 @@ $1 = 'Goodbye'
``` `$$` in Regex denotes a literal `$`. This `$$` in the substitution string to
-include a a literal `$` in the resulting replacement. For example:
+include a literal `$` in the resulting replacement. For example:
```powershell '5.72' -replace '(.+)', '$ $1' # Output: $ 5.72
PSReadLine https://docs.microsoft.com/en-us/powershell/module/PSReadLine/About/about_PSReadLine?view=powershell-7.2 https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/PSReadLine/About/about_PSReadLine.md
@@ -984,26 +984,6 @@ Display the list of possible completions.
- Vi insert mode: `<Ctrl+Spacebar>` - Vi command mode: `<Ctrl+Spacebar>`
-### ShowParameterHelp
-
-Provides dynamic help for parameters by showing it below the current command
-line like `MenuComplete`.
--- Cmd: `<Alt+h>`-- Emacs: `<Alt+h>`-- Vi insert mode: `<Alt+h>`-- Vi command mode: `<Alt+h>`-
-### ShowCommandHelp
-
-Provides a view of full cmdlet help on alternate screen buffer using a Pager
-from **Microsoft.PowerShell.Pager**.
--- Cmd: `<F1>`-- Emacs: `<F1>`-- Vi insert mode: `<F1>`-- Vi command mode: `<F1>`- ### TabCompleteNext Attempt to complete the text surrounding the cursor with the next available
@@ -1032,20 +1012,40 @@ Ends the current edit group, if needed, and invokes TabCompletePrevious.
- Vi insert mode: `<Shift+Tab>`
-## Miscellaneous functions
+## Prediction functions
### AcceptNextSuggestionWord
-Accept the next word of the inline or selected suggestion.
+When using `InlineView` as the view style for prediction, accept the next word of the inline suggestion.
- Function is unbound. ### AcceptSuggestion
-Accept the current inline or selected suggestion.
+When using `InlineView` as the view style for prediction, accept the current inline suggestion.
+
+- Function is unbound.
+
+### NextSuggestion
+
+When using `ListView` as the view style for prediction, navigate to the next suggestion in the list.
+
+- Function is unbound.
+
+### PreviousSuggestion
+
+When using `ListView` as the view style for prediction, navigate to the previous suggestion in the list.
- Function is unbound.
+### SwitchPredictionView
+
+Switch the view style for prediction between `InlineView` and `ListView`.
+
+- Cmd: `<F2>`
+
+## Miscellaneous functions
+ ### CaptureScreen Start interactive screen capture - up/down arrows select lines, enter copies
@@ -1127,6 +1127,16 @@ Insert the key.
- Function is unbound.
+### ShowCommandHelp
+
+Provides a view of full cmdlet help on alternate screen buffer using a Pager
+from **Microsoft.PowerShell.Pager**.
+
+- Cmd: `<F1>`
+- Emacs: `<F1>`
+- Vi insert mode: `<F1>`
+- Vi command mode: `<F1>`
+ ### ShowKeyBindings Show all bound keys.
@@ -1135,6 +1145,16 @@ Show all bound keys.
- Emacs: `<Ctrl+Alt+?>` - Vi insert mode: `<Ctrl+Alt+?>`
+### ShowParameterHelp
+
+Provides dynamic help for parameters by showing it below the current command
+line like `MenuComplete`.
+
+- Cmd: `<Alt+h>`
+- Emacs: `<Alt+h>`
+- Vi insert mode: `<Alt+h>`
+- Vi command mode: `<Alt+h>`
+ ### ViCommandMode Switch the current operating mode from Vi-Insert to Vi-Command.