1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #102789 from KoBeWi/navigUIDe_to_path

Show file when FileSystem is searched with UID
This commit is contained in:
Rémi Verschelde
2025-12-16 11:26:22 +01:00

View File

@@ -2771,6 +2771,14 @@ void FileSystemDock::_search_changed(const String &p_text, const Control *p_from
}
const String searched_string = p_text.to_lower();
if (searched_string.begins_with("uid://")) {
ResourceUID::ID id = ResourceUID::get_singleton()->text_to_id(searched_string);
if (id != ResourceUID::INVALID_ID && ResourceUID::get_singleton()->has_id(id)) {
navigate_to_path(ResourceUID::get_singleton()->get_id_path(id));
return;
}
}
searched_tokens = searched_string.split(" ", false);
if (p_from == tree_search_box) {