Skip to content

Commit 4c5c577

Browse files
committed
Merge pull request #107368 from Meorge/docs/what-is-fuzzy-2
Improve description of fuzzy matching in editor settings documentation
2 parents 6f2ab52 + cf56390 commit 4c5c577

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/classes/EditorSettings.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,13 +787,15 @@
787787
If set to [code]Adaptive[/code], the dialog opens in list view or grid view depending on the requested type. If set to [code]Last Used[/code], the display mode will always open the way you last used it.
788788
</member>
789789
<member name="filesystem/quick_open_dialog/enable_fuzzy_matching" type="bool" setter="" getter="">
790-
If [code]true[/code], fuzzy matching of search tokens is allowed.
790+
If [code]true[/code], together with exact matches of a filename, the dialog includes approximate matches.
791+
This is useful for finding the correct files even when there are typos in the search query; for example, searching "nprmal" will find "normal". Additionally, it allows you to write shorter search queries; for example, searching "nml" will also find "normal".
792+
See also [member filesystem/quick_open_dialog/max_fuzzy_misses].
791793
</member>
792794
<member name="filesystem/quick_open_dialog/include_addons" type="bool" setter="" getter="">
793795
If [code]true[/code], results will include files located in the [code]addons[/code] folder.
794796
</member>
795797
<member name="filesystem/quick_open_dialog/max_fuzzy_misses" type="int" setter="" getter="">
796-
The number of allowed missed query characters in a match, if fuzzy matching is enabled. For example, with the default value of 2, [code]foobar[/code] would match [code]foobur[/code] and [code]foob[/code] but not [code]foo[/code].
798+
The number of missed query characters allowed in a match when fuzzy matching is enabled. For example, with the default value of [code]2[/code], [code]"normal"[/code] would match [code]"narmal"[/code] and [code]"norma"[/code] but not [code]"nor"[/code].
797799
</member>
798800
<member name="filesystem/quick_open_dialog/max_results" type="int" setter="" getter="">
799801
Maximum number of matches to show in dialog.

editor/gui/editor_quick_open_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ QuickOpenResultContainer::QuickOpenResultContainer() {
265265
fuzzy_search_toggle = memnew(CheckButton);
266266
style_button(fuzzy_search_toggle);
267267
fuzzy_search_toggle->set_text(TTR("Fuzzy Search"));
268-
fuzzy_search_toggle->set_tooltip_text(TTRC("Include inexact matches or matches starting in the middle of a filename, instead of only exact matches from the beginning."));
268+
fuzzy_search_toggle->set_tooltip_text(TTRC("Include approximate matches."));
269269
fuzzy_search_toggle->connect(SceneStringName(toggled), callable_mp(this, &QuickOpenResultContainer::_toggle_fuzzy_search));
270270
bottom_bar->add_child(fuzzy_search_toggle);
271271

0 commit comments

Comments
 (0)