1
0
Fork 0
godot/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
..
2d Rename Camera2D's `smoothing` to `position_smoothing` 2022-10-11 16:51:26 +02:00
3d Merge pull request #67249 from wuyingnan/fix_quaternion_typo 2022-10-19 21:02:14 +02:00
animation Connect signal animation_removed to its proper method 2022-10-10 18:39:49 -05:00
audio Fix AudioStreamPlayer not resuming after returning to SceneTree 2022-09-05 16:52:46 +02:00
debugger Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
gui Add Selection and Caret for Next Occurrence of Selection 2022-10-21 08:26:53 +02:00
main Expose Viewport::get_screen_transform to GDScript 2022-10-15 23:37:59 +02:00
resources Fix typo in VisualShader DistanceFade node 2022-10-18 18:20:31 +02:00
theme Un-defer the initial theme changed notification 2022-09-02 23:44:23 +03:00
SCsub Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00
property_utils.cpp
property_utils.h
register_scene_types.cpp Add QuadMesh back as a subclass of PlaneMesh. 2022-09-19 08:53:10 -07:00
register_scene_types.h Add ThemeDB, expose previously static Theme methods 2022-08-26 19:23:05 +03:00
scene_string_names.cpp
scene_string_names.h