Skip to content

Commit

Permalink
Fix debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
kelleyma49 committed Sep 23, 2024
1 parent 19bdd11 commit bb987d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions PSFzf.Base.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
}
Expand Down
4 changes: 1 addition & 3 deletions PSFzf.Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bb987d1

Please sign in to comment.