kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.37k stars 148 forks source link

subdir_fzf should follow toggle_hidden #404

Open danillos opened 11 months ago

danillos commented 11 months ago

When I use toggle_hidden to show all hidden files. When searching using subdir_fzf, they are not included on the search.

xfzv commented 11 months ago

Works fine here with both:

FZF_DEFAULT_COMMAND="fd --type f --hidden"
# or
FZF_DEFAULT_COMMAND="find type -f"

Hidden files are included with subdir_fzf independently of whether hidden files are shown in joshuto or not. It looks like joshuto just use the FZF_DEFAULT_COMMAND options regardless.

❯ fd --version
fd 8.7.0

❯ find --version
find (GNU findutils) 4.9.0
Packaged by Gentoo (4.9.0-r2)
danillos commented 11 months ago

For me it only works right using search_fzf.

MacOS

FZF_DEFAULT_COMMAND not defined, so should be using the default.