FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
#262: drop new apps/filmcraft/README.md; explain file filters in module docs
Brandon Thomas33f3656071a7
diff --git a/apps/filmcraft/README.md b/apps/filmcraft/README.mddeleted file mode 100644index 02813d0ca..000000000--- a/apps/filmcraft/README.md+++ /dev/null@@ -1,18 +0,0 @@-# FilmCraft desktop host--The native host connects the shared egui UI to audio devices, file dialogs, the control-server and platform media APIs. See [contributing](../../docs/contributing.md) for running-the app and [the control protocol](../../docs/control-protocol.md) for automation.--## File dialogs--All filtered file dialogs use `file_filters::extensions`. On Linux and the BSDs, rfd's-XDG portal and Zenity backends use case-sensitive globs. The helper adds bracket patterns-so camera files such as `shot.MP4` and `shot.Mp4` appear alongside `shot.mp4`. This also-applies to relinking, opening projects and presets, and save dialogs. Literal extensions-remain first for the default save suffix; macOS and Windows receive ordinary extensions.--`cargo test --release -p filmcraft --bin filmcraft` checks matching and rejection of-filenames, including mixed case and misleading suffixes, and preserves default save-extensions. The filters follow the-[XDG FileChooser contract](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.FileChooser.html).diff --git a/apps/filmcraft/src/file_filters.rs b/apps/filmcraft/src/file_filters.rsindex 516eb5982..bc7dab594 100644--- a/apps/filmcraft/src/file_filters.rs+++ b/apps/filmcraft/src/file_filters.rs@@ -1,4 +1,12 @@//! Extension filters for native file dialogs.+//!+//! Every filtered file dialog (import, relink, open file/preset, open/save project) builds+//! its filter with [`extensions`]. On Linux and the BSDs, rfd's XDG portal, GTK and Zenity+//! backends turn each extension into a case-sensitive `*.{ext}` glob, so camera files such+//! as `shot.MP4` or `shot.Mp4` would be hidden. The helper appends one bracket pattern per+//! extension (`mp4` -> `[mM][pP]4`) after the literal extensions, which stay first so save+//! dialogs keep their normal default suffix. macOS and Windows dialogs already ignore case+//! and receive the plain list.pub fn extensions(exts: &[&str]) -> Vec<String> {let extensions: Vec<_> = exts.iter().map(|ext| (*ext).to_owned()).collect();