godot/scene
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
..
2d Make navigation mesh edge connections optional 2023-05-11 18:46:34 +02:00
3d Merge pull request #76946 from AThousandShips/shadow_warning 2023-05-12 10:04:09 +02:00
animation Merge pull request #76418 from reduz/method-bind-validated-call 2023-05-08 13:52:42 +02:00
audio Merge pull request #70515 from stmSi/fix-hanging-audio-pitch-scale 2023-02-17 14:06:55 +01:00
debugger Refresh filesystem when saving remote branch 2023-03-24 19:38:08 +01:00
gui sort code completions with rules 2023-05-23 05:12:34 +02:00
main Avoid crash when adjusting a node tree that is not in the tree 2023-05-11 08:57:39 +08:00
resources Merge pull request #76946 from AThousandShips/shadow_warning 2023-05-12 10:04:09 +02:00
theme Merge pull request #68429 from KoBeWi/PropertySettings 2023-01-06 22:59:29 +01:00
property_utils.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
property_utils.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_scene_types.cpp Rework Navigation Avoidance 2023-05-10 05:01:58 +02:00
register_scene_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_string_names.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00