Remove completion key handlers

This commit is contained in:
Daniel Imms
2024-07-22 07:53:26 -07:00
parent 8770236563
commit 960ff34de7
2 changed files with 4 additions and 1 deletions
@@ -38,7 +38,7 @@ function Get-AliasPattern($cmd) {
}
$Global:GitTabSettings = New-Object PSObject -Property @{
AllCommands = $true
AllCommands = $false
KnownAliases = @{
'!f() { exec vsts code pr "$@"; }; f' = 'vsts.pr'
}
@@ -602,6 +602,7 @@ function GitTabExpansionInternal($lastBlock, $GitStatus = $null) {
}
}
get-
function ConvertTo-VscodeCompletion {
Param(
[Parameter(ValueFromPipeline=$true)]
@@ -199,9 +199,11 @@ function Set-MappedKeyHandlers {
Set-PSReadLineKeyHandler -Chord 'F12,g' -ScriptBlock {
Import-Module "$PSScriptRoot\GitTabExpansion.psm1"
Remove-PSReadLineKeyHandler -Chord 'F12,g'
}
Set-PSReadLineKeyHandler -Chord 'F12,h' -ScriptBlock {
Import-Module "$PSScriptRoot\CodeTabExpansion.psm1"
Remove-PSReadLineKeyHandler -Chord 'F12,h'
}
}
}