mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
7d15ecc3af
Adds the bind `add_selection_for_next_occurrence` to TextEdit, with CTRL+D as the default shortcut. When the bind is performed, ff a selection is currently active with the last caret in text fields, searches for the next occurrence of the selection, adds a caret and selects the next occurrence. If no selection is currently active with the last caret in text fields, selects the word currently under the caret. The action can be performed sequentially for all occurrences of the selection of the last caret and for all existing carets. The viewport is adjusted to the latest newly added caret. The bind and the behaviour is similar to VS Code's "Add Selection to Next Find Match" and JetBrains' "Add Selection for Next Occurrence". It takes advantage of the multi-caret API. The default shortcut for `select_word_under_caret` has been changed to ALT+G, in order to give priority to CTRL+D for `add_selection_for_next_occurrence` to better align with popular IDEs and editors. |
||
---|---|---|
.. | ||
test_animation.h | ||
test_audio_stream_wav.h | ||
test_bit_map.h | ||
test_code_edit.h | ||
test_curve.h | ||
test_gradient.h | ||
test_path_3d.h | ||
test_path_follow_2d.h | ||
test_path_follow_3d.h | ||
test_sprite_frames.h | ||
test_text_edit.h | ||
test_theme.h |