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

Add option to enable "New Folder" on MacOS #168

Open
ty1824 opened this issue Dec 9, 2024 · 2 comments
Open

Add option to enable "New Folder" on MacOS #168

ty1824 opened this issue Dec 9, 2024 · 2 comments
Labels
next Scheduled for the next version

Comments

@ty1824
Copy link

ty1824 commented Dec 9, 2024

Many file dialogs I interact with on MacOS have a "New Folder" button in the bottom left. However, FileKit doesn't seem to make this available by default, nor does it offer a configuration option to enable it.

Example:
Screenshot 2024-12-09 at 11 43 55 AM

@ty1824 ty1824 changed the title Add ability to create new folder on MacOS Add option to enable "New Folder" on MacOS Dec 9, 2024
@vinceglb
Copy link
Owner

Hi @ty1824! Thanks for creating this issue.

In the next version 0.10 of FileKit, I'll add an option to manage the possibility to add or remove this "New Folder" button on macOS, and JVM macOS targets. Also, the button "New Folder" will be displayed by default.

// macosMain
actual val settings = FileKitDialogSettings(canCreateDirectories = true)

// jvmMain
actual val settings = FileKitDialogSettings(macOS = FileKitMacOSSettings(canCreateDirectories = true))

// commonMain
expect val settings: FileKitDialogSettings
val result = FileKit.pickFile(platformSettings = settings)

@vinceglb vinceglb added the next Scheduled for the next version label Dec 11, 2024
@ty1824
Copy link
Author

ty1824 commented Dec 11, 2024

Hey @vinceglb!This looks awesome - would fit my needs perfectly. Thanks for the quick response, looking forward to it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next Scheduled for the next version
Projects
None yet
Development

No branches or pull requests

2 participants