Closed kborowinski closed 1 year ago
@kborowinski Thank you for dogfooding the git handler changes! I just merged some fixes (#23) for issues I found while using the module, and I think this issue was also resolved by that PR. Can you please build and give it a try? Thanks!
@daxian-dbw Yep, PR #23 fixed this issue. Thanks!
Thanks for verifying it! I appreciate it.
Prerequisites
Steps to reproduce
Environment:
PowerShell Core 7.4.0.preview-2
buildCompletionPredictor
module build (with git completion support)PSReadLine 2.3.0-beta0
Set-PSReadLineOption -HistoryNoDuplicates Set-PSReadLineOption -PredictionSource 'HistoryAndPlugin'
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
$Parameters = @{ Key = 'RightArrow' BriefDescription = 'ForwardCharAndAcceptNextSuggestionWord' ScriptBlock = { param($key, $arg) $line = $null $cursor = $null [Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([Ref]$line, [Ref]$cursor) if ($cursor -lt $line.Length) { [Microsoft.PowerShell.PSConsoleReadLine]::ForwardChar($key, $arg) } else { [Microsoft.PowerShell.PSConsoleReadLine]::AcceptNextSuggestionWord($key, $arg) } } } Set-PSReadlineKeyHandler @Parameters
Expected behavior
Actual behavior
Error details
Environment data
Version
0.1.0
Visuals