fluxxcode / egui-file-dialog

Full featured and customizable file dialog for egui
MIT License
86 stars 11 forks source link

Hexerator wishlist #116

Closed crumblingstatue closed 5 months ago

crumblingstatue commented 5 months ago

My egui project, Hexerator has switched from rfd to egui-file-dialog, but right now it's using a fork with custom patches to accommodate Hexerator's needs. The eventual goal is to not have a fork, and just depend on upstream egui-file-dialog directly. This is a wishlist of features that currently a fork is required for.

fluxxcode commented 5 months ago

1: Are the quick access sections not suitable for this? \ You can add your own sections via the backend:

file_dialog = FileDialog::default()
    .add_quick_access("Hexerator", |s| {
        s.add_path("Some path 1", "./path-1");
        s.add_path("Some path 2", "./path-2");
    })

And you can access the config with file_dialog.config_mut().

crumblingstatue commented 5 months ago

And you can access the config with file_dialog.config_mut().

Ah, good catch. I think I used to need that because the storage and config were two different structs, and I was getting overlapping borrows by borrowing the config through config_mut(&mut self), and also trying to access the storage.

But now the storage is in the config, so it's fine that config_mut() borrows self.

I'll cross that one off the list.

fluxxcode commented 5 months ago

The shortcut key is now implemented.

Let me know if you have any other ideas!