virtualx-engine/core/input
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
..
default_controller_mappings.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
gamecontrollerdb.txt Sync controller mappings DB with SDL2 community repo 2022-09-27 23:48:25 +02:00
godotcontrollerdb.txt [Web] Add PS3 gamepad mapping for FF+Linux. 2022-10-03 13:06:50 +02:00
input.cpp Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
input.h Consolidate the fact that Input is meant to be final 2022-08-22 14:37:25 +02:00
input_builders.py ci: add Python static analysis check via mypy 2022-09-30 19:03:17 +07:00
input_enums.h Add joystick button index boundary check. Increase max. button number to 128 (max. buttons supported by DirectInput). 2022-01-10 14:39:05 +02:00
input_event.cpp Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
input_event.h Fix key mapping changes when moving from macOS to other platform 2022-09-07 18:45:35 +02:00
input_map.cpp Add Selection and Caret for Next Occurrence of Selection 2022-10-21 08:26:53 +02:00
input_map.h Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
SCsub SCons: List .gen.cpp sources explicitly to avoid globbing errors 2021-10-15 22:14:11 +02:00
shortcut.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
shortcut.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00