diff options
author | Alfred Reinold Baudisch <alfred@alfredbaudisch.com> | 2022-10-19 19:35:14 +0200 |
---|---|---|
committer | Alfred Reinold Baudisch <alfred@alfredbaudisch.com> | 2022-10-21 08:26:53 +0200 |
commit | 7d15ecc3affdee1ad89ef1a2eeaca6b894ae6548 (patch) | |
tree | 366b22fbd35f6e5c20048ba0f14926fa83091998 /thirdparty/libwebp/src | |
parent | 431012e14845590249c1ade9d153c55b32c9cca7 (diff) |
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.
Diffstat (limited to 'thirdparty/libwebp/src')
0 files changed, 0 insertions, 0 deletions