godot/tests/scene
Alfred Reinold Baudisch 7d15ecc3af Add Selection and Caret for Next Occurrence of Selection
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.
2022-10-21 08:26:53 +02:00
..
test_animation.h
test_audio_stream_wav.h Change time parameters and variables to double type 2022-09-26 13:52:54 -05:00
test_bit_map.h Make some Image methods static 2022-10-14 14:34:15 +02:00
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 Add Selection and Caret for Next Occurrence of Selection 2022-10-21 08:26:53 +02:00
test_theme.h