unable to get Alt C in PowerShell working #4333
-
Hope I'm asking this in the right spot. I'm assuming $env:FZF_ALT_C_COMMAND is the problem. A little new to this, any help would be much appreciated. Import-Module PSFzf
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
$commandOverride = [ScriptBlock]{ param($Location) Write-Host $Location }
Set-PsFzfOption -AltCCommand $commandOverride
$env:fzf_default_opts='--style full --bind ]:preview-up,[:preview-down'
$env:fzf_ctrl_t_opts="
--walker-skip .git,node_modules,target
--preview 'bat -n --color=always {}'
--height 80%
"
$env:FZF_ALT_C_OPTS='--height 40% --preview "dir {}"'
$env:FZF_ALT_C_COMMAND='Get-ChildItem -Directory | fzf'
I can get the Alt C FZF window to appear but it does not work correctly and I have to exit back to the command line most of the time. Thank you very much, Kyle |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Remove |
Beta Was this translation helpful? Give feedback.
Remove
| fzf
.