virtualx-engine/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 Add a unit test suite for Animation 2022-02-06 21:33:22 +01:00
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 Fix TextEdit::gutters_width (total gutter width) when adding & removing a gutter by calling TextEdit::_update_gutter_width in TextEdit::add_gutter & TextEdit::remove_gutter 2022-08-31 10:01:40 +09:00
test_curve.h Rename Curve/Curve2D/Curve3D/Gradient interpolate() to sample() 2022-08-30 22:08:38 +02:00
test_gradient.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
test_path_3d.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
test_path_follow_2d.h Rename PathFollow's offsets to progress & progress_ratio 2022-08-24 01:56:03 +02:00
test_path_follow_3d.h Rename PathFollow's offsets to progress & progress_ratio 2022-08-24 01:56:03 +02:00
test_sprite_frames.h Tests: Silence some intentional errors 2022-08-04 22:03:44 +02:00
test_text_edit.h Add Selection and Caret for Next Occurrence of Selection 2022-10-21 08:26:53 +02:00
test_theme.h Tests: Silence some intentional errors 2022-08-04 22:03:44 +02:00