Skip to content

Add original index field to fuzzy search result#105930

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
a-johnston:fuzzy_search_index_field
Apr 30, 2025
Merged

Add original index field to fuzzy search result#105930
Repiteo merged 1 commit into
godotengine:masterfrom
a-johnston:fuzzy_search_index_field

Conversation

@a-johnston
Copy link
Copy Markdown
Contributor

Very simple pr to track the original index within the targets array of a given fuzzy search result. This is useful as typically there is other data associated with whatever is being searched against and without this new field it's required to build a path to data mapping. Specifically, see #105239 and #105240.

I briefly looked into applying this new field to the current use case of the quick open dialog but it would require reworking how history is incorporated into the results so I didn't think it was worth it. Hypothetically it would be a tiny bit faster to do so as it would replace a few hash lookups with indexed lookups.

@a-johnston a-johnston requested a review from a team as a code owner April 30, 2025 00:51
@akien-mga akien-mga added this to the 4.x milestone Apr 30, 2025
Copy link
Copy Markdown
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine in the context of the two linked PRs that would use it.

@akien-mga akien-mga modified the milestones: 4.x, 4.5 Apr 30, 2025
@Repiteo Repiteo merged commit fb08e94 into godotengine:master Apr 30, 2025
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Apr 30, 2025

Thanks!

@a-johnston a-johnston deleted the fuzzy_search_index_field branch April 30, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants