[X] For bug reports, I have checked if the bug is reproducible in the latest version of fzf
Output of fzf --version
0.50.0 (f97d275)
OS
[X] Linux
[ ] macOS
[ ] Windows
[ ] Etc.
Shell
[X] bash
[ ] zsh
[ ] fish
Problem / Steps to reproduce
I'm using Debian 12 and the included fzf 0.38.0. I use the following script to open files or folders:
#!/usr/bin/bash
selection=$(find / -type f ! -path "/proc/*" ! -path "/mnt/*" 2>/dev/null | fzf --exact --multi --height=80% --border=sharp --color='fg+:red' \
--preview='batcat {}' --preview-window='45%,border-sharp' \
--prompt='Files > ' \
--bind='del:execute(rm -ri {+})' \
--bind='ctrl-p:toggle-preview' \
--bind='ctrl-d:reload(find / -type d ! -path "/proc/*" ! -path "/mnt/*" 2>/dev/null)' \
--bind='ctrl-d:+change-prompt(Dirs > )' \
--bind='ctrl-d:+change-preview(tree -C {})' \
--bind='ctrl-d:+refresh-preview' \
--bind='ctrl-f:change-prompt(Files > )' \
--bind='ctrl-f:+reload(find / -type f ! -path "/proc/*" ! -path "/mnt/*" 2>/dev/null)' \
--bind='ctrl-f:+change-preview(batcat {})' \
--bind='ctrl-f:+refresh-preview' \
--header '
CTRL-D to display directories | CTRL-F to display files
ENTER to edit | DEL to delete
CTRL-P to toggle preview
'
)
if [ -d "$selection" ]; then
cd $selection || exit
elif [ -f "$selection" ]; then
if sudo -u "$USER" test -w "$selection"; then
eval "nano $selection"
exit
else
eval "sudo nano $selection"
exit
fi
fi
When I move fresh fzf, then not working to switch directory. The prompt changes to Dirs, but the find function still show files.
When move back 0.38.0 version, then working again.
Checklist
man fzf
)Output of
fzf --version
0.50.0 (f97d275)
OS
Shell
Problem / Steps to reproduce
I'm using Debian 12 and the included fzf 0.38.0. I use the following script to open files or folders:
When I move fresh fzf, then not working to switch directory. The prompt changes to Dirs, but the find function still show files. When move back 0.38.0 version, then working again.