Skip to content

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Jan 21, 2026

Replaces #2679, builds on #2710,

Fixes #129 and (potentially) many others

This PR replaces the existing Gtk.FileChooser with a widget that implements most of the Files app functionality and uses mostly the same widgets.

To avoid problems previously encounted with Gtk.FileFilterInfo, we implement our own simplified filtering with Files.FileFilter. Only mime-type and glob filtering are implemented.

Much of this can be split out into small PRs so it is not expected that this PR will be merged in toto.

Currently partially works but needs further work. The Miller view awaits transfer to libcore so does not work in the portal. Othewise most of the src folder has been transferred to libcore.

The tests subfolder will be lost before merging

Note: Only works if app use the portal (e.g. Flatpaks) . Native Gtk3 apps must be run with the environment variable GTK_USE_PORTAL=1 and use Gtk.FileChooserNative otherwise the native Gtk.FileChooser will appear.

@jeremypw jeremypw mentioned this pull request Jan 21, 2026
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File chooser sidebar should better match Files

2 participants