Goldleaf icon indicating copy to clipboard operation
Goldleaf copied to clipboard

Option to ignore hidden files

Open 00dani opened this issue 3 years ago • 3 comments
trafficstars

Goldleaf 0.9 always lists all "dotfiles", which can mean dramatically inflating the list of files when you connect to a Mac using Quark for example. The SD card on my Switch is also packed with dotfiles, annoyingly, since I set it up using a Mac as well. There doesn't seem to be a fast way to scroll through Goldleaf's lists a page at a time, making it much more fiddly to use Goldleaf than necessary.

I think this behaviour may be a regression, since I delved into the existing issues posted to this repo and found PR #94 that addressed the same problem? In that patch, Goldleaf was simply programmed to always skip over files that start with a dot. That fix should be okay for most users - however, these kinds of homebrew file browser applications often allow hidden files to optionally be displayed just in case, so it may be a good idea to provide an option in Goldleaf that allows the user to show or hide hidden files as suits their needs.

00dani avatar Dec 10 '21 04:12 00dani

Should probably use dotclean on your sd card before you eject it just in case, a lot of homebrew really don't like them, especially things like daybreak which expect to be able to verify that a folder contains the correct files and arent modified

Masamune3210 avatar Dec 10 '21 06:12 Masamune3210

Should probably use dotclean on your sd card before you eject it just in case

Oh cool! I wasn't aware of dot_clean, and that's a really helpful tool. 👍

However Goldleaf being able to skip over hidden files would still be valuable, at least for Quark usage. There are plenty of hidden files on my Mac that are actually supposed to be there and aren't just Apple nonsense.

00dani avatar Dec 12 '21 01:12 00dani

You should be able to point dotclean at a specific location if I'm not mistaken, but yeah the ability to ignore hidden files would be nice but probably low priority

Masamune3210 avatar Dec 13 '21 05:12 Masamune3210