@@ -18,15 +18,15 @@ the user's cursor. The suggestions from Predictive IntelliSense help new and exp
1818PowerShell discover, edit, and execute full commands based on matching predictions. Suggestions can
1919come from the user's history and additional domain specific plugins.
2020
21- ![ Inline view of a prediction] ( media/using-predictors/predictor-inline-1.png )
21+ ![ Inline view of a prediction] [ 07 ]
2222
2323The previous images shows the default ` InlineView ` of the suggestion. Pressing <kbd >RightArrow</kbd >
2424key accepts an inline suggestion. After accepting the suggestion, you can edit the command line
2525before hitting <kbd >Enter</kbd > to run the command.
2626
2727** PSReadLine** also offers a ` ListView ` presentation of the suggestions.
2828
29- ![ List view of predictions] ( media/using-predictors/predictor-listview-1.png )
29+ ![ List view of predictions] [ 08 ]
3030
3131When in the list view, you can use the arrow keys to scroll through the available suggestions. List
3232view also shows the source of the prediction.
@@ -46,7 +46,7 @@ To install **PSReadLine** using **PowerShellGet**:
4646Install-Module -Name PSReadLine
4747```
4848
49- Or install using the new [ PowerShellGet v3] [ PSGetv3 ] module:
49+ Or install using the new [ PowerShellGet v3] [ 05 ] module:
5050
5151``` powershell
5252Install-PSResource -Name PSReadLine
@@ -82,7 +82,7 @@ You can change the prediction source using the `Set-PSReadLineOption` cmdlet wit
8282> [ !NOTE]
8383> History-based predictions come from the history maintained by ** PSReadLine** . That history is more
8484> comprehensive than the session-based history you can see using ` Get-History ` . For more
85- > information, see ** Command history** section of [ about_PSReadLine] [ psr-history ] .
85+ > information, see ** Command history** section of [ about_PSReadLine] [ 01 ] .
8686
8787### Setting the prediction color
8888
@@ -102,7 +102,7 @@ Set-PSReadLineOption -Colors @{ InlinePrediction = "`e[38;5;238m" }
102102```
103103
104104For more information about setting prediction color and other PSReadLine settings, see
105- [ Set-PSReadLineOption] [ Set-PSReadLineOption ] .
105+ [ Set-PSReadLineOption] [ 09 ] .
106106
107107### Changing keybindings
108108
@@ -136,14 +136,14 @@ Set-PSReadLineKeyHandler -Chord "RightArrow" -Function ForwardWord
136136The ** Az.Tools.Predictor** module was the first plug-in for Predictive IntelliSense. It uses Machine
137137Learning to predict what Azure PowerShell command you want to run and the parameters you want to
138138use. For more information and installation instructions, see
139- [ Announcing General Availability of Az.Tools.Predictor] [ azpredictor ] .
139+ [ Announcing General Availability of Az.Tools.Predictor] [ 03 ] .
140140
141141The ** CompletionPredictor** module adds an IntelliSense experience for anything that can be
142142tab-completed in PowerShell. With ** PSReadLine** set to ` InlineView ` , you get the normal tab
143143completion experience. When you switch to ` ListView ` , you get the IntelliSense experience. You can
144- install the [ CompletionPredictor] [ CompletionPredictor ] module from the PowerShell Gallery.
144+ install the [ CompletionPredictor] [ 04 ] module from the PowerShell Gallery.
145145
146- ![ PowerShell IntelliSense using the CompletionPredictor] ( media/using-predictors/completion-predictor.gif )
146+ ![ PowerShell IntelliSense using the CompletionPredictor] [ 06 ]
147147
148148As previously noted, ` ListView ` shows you the source of the prediction. If you have multiple
149149plug-ins installed the predictions are grouped by source with ** History** listed first followed by
@@ -155,12 +155,15 @@ You can write your own predictor using C# to create a compiled PowerShell module
155155implement the ** System.Management.Automation.Subsystem.Prediction.ICommandPredictor** interface.
156156This interface declares the methods used to query for prediction results and provide feedback.
157157
158- For more information, see [ How to create a command-line predictor] [ custom-predictor ] .
158+ For more information, see [ How to create a command-line predictor] [ 02 ] .
159159
160160<!-- link references -->
161- [ azpredictor ] : https://techcommunity.microsoft.com/t5/azure-tools-blog/announcing-general-availability-of-az-tools-predictor/ba-p/3297956
162- [ Set-PSReadLineOption ] : xref:PSReadLine.Set-PSReadLineOption
163- [ PSGetv3 ] : https://www.powershellgallery.com/packages/PowerShellGet/3.0.14-beta14
164- [ CompletionPredictor ] : https://www.powershellgallery.com/packages/CompletionPredictor
165- [ psr-history ] : /powershell/module/psreadline/about/about_psreadline#command-history
166- [ custom-predictor ] : /powershell/scripting/dev-cross-plat/create-cmdline-predictor
161+ [ 01 ] : /powershell/module/psreadline/about/about_psreadline#command-history
162+ [ 02 ] : /powershell/scripting/dev-cross-plat/create-cmdline-predictor
163+ [ 03 ] : https://techcommunity.microsoft.com/t5/azure-tools-blog/announcing-general-availability-of-az-tools-predictor/ba-p/3297956
164+ [ 04 ] : https://www.powershellgallery.com/packages/CompletionPredictor
165+ [ 05 ] : https://www.powershellgallery.com/packages/PowerShellGet/3.0.14-beta14
166+ [ 06 ] : media/using-predictors/completion-predictor.gif
167+ [ 07 ] : media/using-predictors/predictor-inline-1.png
168+ [ 08 ] : media/using-predictors/predictor-listview-1.png
169+ [ 09 ] : xref:PSReadLine.Set-PSReadLineOption
0 commit comments