diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-01 16:45:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-01 16:45:06 +0200 |
| commit | 01559ca84e0782b91788be73609f2c8afed94027 (patch) | |
| tree | 3141ffa15df701d9ee6e017f4b80972bdd09a68d /editor/quick_open.h | |
| parent | 117e0106ea22bec1f4f4d8a644e2506b8610cb06 (diff) | |
| parent | 7f6e8d25d43c77b89bd3a9968e13ebef94a82f5c (diff) | |
| download | redot-engine-01559ca84e0782b91788be73609f2c8afed94027.tar.gz | |
Merge pull request #39927 from hinlopen/quick-open-ranking
Quick Open search ranking: favor filenames over extensions.
Diffstat (limited to 'editor/quick_open.h')
| -rw-r--r-- | editor/quick_open.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/quick_open.h b/editor/quick_open.h index 8670bb1ade..5bcdfc7bf2 100644 --- a/editor/quick_open.h +++ b/editor/quick_open.h @@ -41,6 +41,7 @@ class EditorQuickOpen : public ConfirmationDialog { LineEdit *search_box; Tree *search_options; + StringName base_type; StringName ei; StringName ot; @@ -50,7 +51,7 @@ class EditorQuickOpen : public ConfirmationDialog { void _sbox_input(const Ref<InputEvent> &p_ie); void _parse_fs(EditorFileSystemDirectory *efsd, Vector<Pair<String, Ref<Texture2D>>> &list); Vector<Pair<String, Ref<Texture2D>>> _sort_fs(Vector<Pair<String, Ref<Texture2D>>> &list); - float _path_cmp(String search, String path) const; + float _score_path(String search, String path) const; void _confirmed(); void _text_changed(const String &p_newtext); |
