From fbfda46ffa485777bc83fcfcf63c5f4268396439 Mon Sep 17 00:00:00 2001 From: Zi Ye Date: Thu, 22 Feb 2024 02:22:16 -0600 Subject: Added tokenized search support to Quick Open dialog and FileSystem filter. --- editor/filesystem_dock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/filesystem_dock.h') diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 8830f31d2d..6dbf25cf73 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -172,7 +172,7 @@ private: LineEdit *file_list_search_box = nullptr; MenuButton *file_list_button_sort = nullptr; - String searched_string; + PackedStringArray searched_tokens; Vector uncollapsed_paths_before_search; TextureRect *search_icon = nullptr; @@ -311,6 +311,7 @@ private: void _split_dragged(int p_offset); void _search_changed(const String &p_text, const Control *p_from); + bool _matches_all_search_tokens(const String &p_text); MenuButton *_create_file_menu_button(); void _file_sort_popup(int p_id); -- cgit v1.2.3