godot/scene/gui
ajreckof 006e899bb3 sort code completions with rules
Fixups

Add levenshtein distance for comparisons, remove kind sort order, try to improve as many different use cases as possible

Trying again to improve code completion

Sort code autocompletion options by similarity based on input

To make it really brief, uses a combination `String.similiary`, the category system introduced in a previous PR, and some filtering to yield more predictable results, instead of scattering every completion option at seemingly random.

It also gives much higher priority to strings that contain the base in full, closer to the beginning or are perfect matches.

Also moves CodeCompletionOptionCompare to code_edit.cpp

Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com>
Co-Authored-By: Eric M <41730826+EricEzaM@users.noreply.github.com>
2023-05-23 05:12:34 +02:00
..
aspect_ratio_container.cpp Fix crash with AspectRatioContainer and TextureRect 2023-02-16 14:35:09 +01:00
aspect_ratio_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
base_button.cpp Add option for ButtonGroups to be unpressed 2023-04-20 17:09:39 -06:00
base_button.h Add option for ButtonGroups to be unpressed 2023-04-20 17:09:39 -06:00
box_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
box_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
button.cpp Implement vertical icon alignment for buttons 2023-05-01 19:51:47 +02:00
button.h Implement vertical icon alignment for buttons 2023-05-01 19:51:47 +02:00
center_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
center_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_box.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_box.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_button.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
check_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
code_edit.cpp sort code completions with rules 2023-05-23 05:12:34 +02:00
code_edit.h sort code completions with rules 2023-05-23 05:12:34 +02:00
color_mode.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color_mode.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color_picker.cpp Merge pull request #72376 from MewPurPur/fix-color-button-popup 2023-05-08 12:20:07 +02:00
color_picker.h Add center_grabber property to Slider 2023-04-22 17:53:17 +02:00
color_rect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
color_rect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
control.cpp Merge pull request #69318 from Sauermann/fix-refresh-gui-events 2023-04-25 15:36:26 +02:00
control.h Add a warning when trying to access theme items too early 2023-04-03 18:01:10 +02:00
dialogs.cpp Use min_size/max_size to limit the window size and the position while popup center 2023-02-07 21:28:26 +08:00
dialogs.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
file_dialog.cpp Defer invalidation on FileDialog nodes 2023-03-25 14:24:46 -03:00
file_dialog.h Defer invalidation on FileDialog nodes 2023-03-25 14:24:46 -03:00
flow_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
flow_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
graph_edit.cpp Add more uses of appropriate cursors when resizing/moving some UI nodes 2023-05-07 11:14:57 -03:00
graph_edit.h Add more uses of appropriate cursors when resizing/moving some UI nodes 2023-05-07 11:14:57 -03:00
graph_node.cpp Add more uses of appropriate cursors when resizing/moving some UI nodes 2023-05-07 11:14:57 -03:00
graph_node.h Add more uses of appropriate cursors when resizing/moving some UI nodes 2023-05-07 11:14:57 -03:00
grid_container.cpp Use BitField<> hint for ArrayFormat 2023-01-08 18:47:48 +01:00
grid_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
item_list.cpp Add get_item_rect function to ItemList 2023-05-11 19:01:54 +02:00
item_list.h Add get_item_rect function to ItemList 2023-05-11 19:01:54 +02:00
label.cpp Revert Label text reshaping fix #71553 and subsequent regression fixes 2023-02-23 10:36:42 +01:00
label.h Revert Label text reshaping fix #71553 and subsequent regression fixes 2023-02-23 10:36:42 +01:00
line_edit.cpp Merge pull request #74623 from MewPurPur/edit-text-with-style 2023-04-17 19:08:08 +02:00
line_edit.h Implement LineEdit.get_selected_text() 2023-03-30 22:58:12 +02:00
link_button.cpp FBX: Disable importer when canceling FBX2glTF setup 2023-03-03 13:53:03 +01:00
link_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
margin_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
margin_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
menu_bar.cpp Fix auto-translations in editor 2023-03-22 23:57:12 +01:00
menu_bar.h Removed unused property hints and Object::get_translatable_strings() 2023-01-09 16:56:01 +01:00
menu_button.cpp Auto translate popup menus of MenuButton and OptionButton 2023-03-27 18:09:24 +08:00
menu_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
nine_patch_rect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
nine_patch_rect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
option_button.cpp Merge pull request #72028 from kilojool/option_button_reselection 2023-04-03 17:06:36 +02:00
option_button.h OptionButton: allow reselection of selected item 2023-01-25 15:11:48 +01:00
panel_container.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
panel.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
popup_menu.cpp Add icon_modulate functionality to PopupMenu 2023-05-08 15:25:00 -07:00
popup_menu.h Add icon_modulate functionality to PopupMenu 2023-05-08 15:25:00 -07:00
popup.cpp [Editor] Fix editor progress dialog auto closing on ESC press, and on application focus loss. 2023-02-14 09:23:40 +02:00
popup.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
progress_bar.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
progress_bar.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
range.cpp Merge pull request #70834 from pattlebass/spinbox-doesnt-spin 2023-04-12 17:01:11 +02:00
range.h Merge pull request #70834 from pattlebass/spinbox-doesnt-spin 2023-04-12 17:01:11 +02:00
reference_rect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
reference_rect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_effect.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_effect.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rich_text_label.cpp Merge pull request #75975 from bruvzg/bidi_and_log_errors 2023-04-12 13:28:12 +02:00
rich_text_label.h Improve line BiDi handling, prevent crash on recursive log updates. 2023-04-12 11:39:05 +03:00
scroll_bar.cpp Merge pull request #67910 from pkowal1982/scroll_bar 2023-03-08 14:06:30 +01:00
scroll_bar.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scroll_container.cpp Expose horizontal/vertical custom_step as editor property for the ScrollContainer 2023-04-29 23:56:59 +02:00
scroll_container.h Expose horizontal/vertical custom_step as editor property for the ScrollContainer 2023-04-29 23:56:59 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
separator.cpp Clean-up, harmonize, and improve StyleBox API 2023-01-19 20:02:21 +03:00
separator.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
slider.cpp Add center_grabber property to Slider 2023-04-22 17:53:17 +02:00
slider.h Add center_grabber property to Slider 2023-04-22 17:53:17 +02:00
spin_box.cpp Merge pull request #74623 from MewPurPur/edit-text-with-style 2023-04-17 19:08:08 +02:00
spin_box.h Merge pull request #70834 from pattlebass/spinbox-doesnt-spin 2023-04-12 17:01:11 +02:00
split_container.cpp Fix SplitContainer rendering and theming 2023-01-22 16:34:56 +01:00
split_container.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
subviewport_container.cpp Move call of push_unhandled_input from Window to Viewport 2023-03-17 19:22:24 +01:00
subviewport_container.h Move call of push_unhandled_input from Window to Viewport 2023-03-17 19:22:24 +01:00
tab_bar.cpp Merge pull request #74632 from davthedev/tabs-hover 2023-04-24 16:42:38 +02:00
tab_bar.h Merge pull request #74632 from davthedev/tabs-hover 2023-04-24 16:42:38 +02:00
tab_container.cpp Fixed error messages when setting all_tab_in_front of TabContainer 2023-04-30 08:17:21 +02:00
tab_container.h Merge pull request #76374 from OverloadedOrama/more-tab-container-signals 2023-04-24 16:48:01 +02:00
text_edit.cpp Fix right click in selection of additional caret 2023-05-08 00:02:56 +02:00
text_edit.h Add an option to show a TextEdit caret when editable is disabled 2023-04-07 22:27:01 -03:00
texture_button.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
texture_button.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
texture_progress_bar.cpp TextureProgressBar Update upon texture changes 2023-04-01 00:16:43 +02:00
texture_progress_bar.h TextureProgressBar Update upon texture changes 2023-04-01 00:16:43 +02:00
texture_rect.cpp Add expand mode compat to TextureRect 2023-01-13 19:16:49 +01:00
texture_rect.h Add expand mode compat to TextureRect 2023-01-13 19:16:49 +01:00
tree.cpp Merge pull request #76794 from Wiwip/inline-edit 2023-05-11 11:46:45 +02:00
tree.h Merge pull request #76794 from Wiwip/inline-edit 2023-05-11 11:46:45 +02:00
video_stream_player.cpp Updates VideoDecoder plugin API to GDExtension. 2023-01-30 18:39:29 -08:00
video_stream_player.h Updates VideoDecoder plugin API to GDExtension. 2023-01-30 18:39:29 -08:00
view_panner.cpp Fix the issue preventing dragging in the 2D and visual shader editor 2023-03-19 12:36:36 -07:00
view_panner.h Add gesture to ViewPanner and simplify a bit its API 2023-01-23 16:43:53 +01:00