summaryrefslogtreecommitdiffstats
path: root/editor/filesystem_dock.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-19 16:26:50 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-19 16:26:50 +0200
commit3acd14d6bc9bd0b7ff93d7e329b1d67cc51fecb3 (patch)
treea8a0a0b829cea6d99627814390a066bc20ab510b /editor/filesystem_dock.h
parent42e6f9a9d8d6eb4bcb982700845e899d948262c5 (diff)
parentfbfda46ffa485777bc83fcfcf63c5f4268396439 (diff)
downloadredot-engine-3acd14d6bc9bd0b7ff93d7e329b1d67cc51fecb3.tar.gz
Merge pull request #88660 from MajorMcDoom/tokenized-file-search
Add tokenized search support to Quick Open dialog and FileSystem filter
Diffstat (limited to 'editor/filesystem_dock.h')
-rw-r--r--editor/filesystem_dock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h
index f514de15e5..058886c91a 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<String> 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);