From 3f565b58cc85a655b552ddcfad1e31b60bdc374f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Sun, 7 Sep 2025 13:25:20 +0200 Subject: [PATCH] ignore/types: add Qt types for resource files and ui declaration qrc[1] are the resource files for data related to user interfaces, and ui[2] is the extension that the Qt Designer generates, for Widget based projects. Note that the initial PR used `ui` as a name for `*.ui`, but this seems overly general. Instead, we use `qui` here instead. Closes #3141 [1]: https://doc.qt.io/qt-6/resources.html [2]: https://doc.qt.io/qt-6/uic.html --- crates/ignore/src/default_types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 7f08587c..930fbd35 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -216,6 +216,8 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[ (&["py", "python"], &["*.py", "*.pyi"]), (&["qmake"], &["*.pro", "*.pri", "*.prf"]), (&["qml"], &["*.qml"]), + (&["qrc"], &["*.qrc"]), + (&["qui"], &["*.ui"]), (&["r"], &["*.R", "*.r", "*.Rmd", "*.Rnw"]), (&["racket"], &["*.rkt"]), (&["raku"], &[