Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/Load Dialog: Add Toggle for Hidden Files/Folders (.directories) #507

Open
vivid-pixel opened this issue Jun 21, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@vivid-pixel
Copy link

vivid-pixel commented Jun 21, 2024

Is your feature request related to a problem? Please describe.
MacOS has a feature like the one in Windows for enabling viewing of hidden files and directories in your file system.

There are two ways I know to do this. First is to use a keyboard shortcut inside Finder: Command-Shift-+

Alternatively, through the Terminal:

defaults write com.apple.Finder AppleShowAllFiles true
killall Finder

When saving a file in the QB64 PE editor, if you have this setting enabled, you have to scroll through quite a lot of hidden folders/directories whose names begin with a period. The window has a toggle checkbox for .BAS Only which filters the Files listing to the left. That's very useful to prevent scrolling through irrelevant files!
Hidden-Folders-MacOS-QB64PE
The directories listing in the box on the right side, however, does not have a filter option. I've had to scroll 3/4ths of the way down just to find my Documents folder. There are 47 directories in total for me, with only 9 of them being non-hidden, the other 38 being dot-directories where it's very unlikely a person will ever want to store or load QB64 source code.

Describe the solution you'd like
I would really appreciate a checkbox option for Hidden files. This can be used as a QB64PE-specific override of the OS setting. I think it would be ideal to respect the global OS setting by default, with the check box's default selection being predetermined by the OS setting, but that sounds tricky.

Describe alternatives you've considered
I know that at its core, this is an OS setting and I'm glad the IDE respects it when there is no option in the interface to override.

There could be a Don't show hidden, or Hide .folders option, which will specifically filter out files or folders beginning with a period. If this option is there, I think hiding them by default would be acceptable, and toggling it off would then display the hidden ones as long as MacOS is also set to do that. Alternatively, override the global setting entirely and show hidden files in the IDE if the user chooses to, regardless of the global OS setting.

Additional context
You may be wondering, "Why wouldn't a user just disable this setting system-wide?"
I'm sure it isn't just me that has valid reasons outside QB64 to enable viewing of hidden files--such as being able to see and remove that pesky __MACOSX metadata when creating a zip archive.

A couple use cases like that mean I keep the hidden setting on, but I really don't need it to be enabled in QB64 PE.

@vivid-pixel vivid-pixel added the enhancement New feature or request label Jun 21, 2024
@vivid-pixel vivid-pixel changed the title Save/Load Dialog: Add Toggle for Hidden Files/Dot-Directories Save/Load Dialog: Add Toggle for Hidden Files/Folders (.directories) Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant