diff --git a/PSFzf.Base.ps1 b/PSFzf.Base.ps1 index 2d37dcf..18c897c 100644 --- a/PSFzf.Base.ps1 +++ b/PSFzf.Base.ps1 @@ -387,8 +387,6 @@ function Invoke-Fzf { if ($PSBoundParameters.ContainsKey('PrintQuery') -and $PrintQuery) { $arguments += '--print-query '} if ($PSBoundParameters.ContainsKey('Expect') -and ![string]::IsNullOrWhiteSpace($Expect)) { $arguments += "--expect=""$Expect"" "} - #$arguments | Out-File C:\github\crap.txt - $Bind | Out-File c:\github\crap.txt -Append if (!$script:OverrideFzfDefaults) { $script:OverrideFzfDefaults = [FzfDefaultOpts]::new("") } diff --git a/PSFzf.Functions.ps1 b/PSFzf.Functions.ps1 index b1fffeb..471f6cd 100644 --- a/PSFzf.Functions.ps1 +++ b/PSFzf.Functions.ps1 @@ -353,10 +353,8 @@ function Invoke-PsFzfRipgrep() { $Bind += 'ctrl-f:unbind(change,ctrl-f)+change-prompt(fzf> )+enable-search+clear-query+rebind(ctrl-r)' $Bind += "change:reload:$sleepCmd $RG_PREFIX {q} || $trueCmd" - $fzfArguments | Out-File C:\github\crap.txt + Invoke-Fzf @fzfArguments -Bind $Bind | ForEach-Object { $results += $_ } - Invoke-Fzf @fzfArguments -Bind $Bind | ` - ForEach-Object { $results += $_ } # we need this here to prevent the editor launch from inherting FZF_DEFAULT_COMMAND from being overwritten (see #267): if ($script:OverrideFzfDefaultCommand) { $script:OverrideFzfDefaultCommand.Restore()