Age | Commit message (Collapse) | Author |
|
Add Selection and Caret for Next Occurrence of Selection
|
|
Code simplifications
|
|
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.
|
|
Revert `custom_minimum_size` type back to `Vector2` instead of `Vector2i`
|
|
1. Viewport::get_visible_rect().position is always zero.
So Control::get_window_rect is identical to Control::get_global_rect.
Remove Control::get_window_rect since it is not used in the source code.
2. sqrt(a * a) = abs(a) for doubles
3. Simplify affine_inverse combination
4. Simplify calculation in shaders
|
|
|
|
|
|
Comment not to remove `data` structs in some Nodes
|
|
|
|
Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
|
|
Move Shortcut Context to control and fix `shortcut_input` with `shortcut_context`
|
|
contexts. Also ensure that controls with no context are only triggered AFTER nodes which do have a context.
|
|
|
|
Fix Control node not disconnecting from signal
|
|
Improve Popup / Window behavior in the edited scene tree.
|
|
|
|
Add Spritesheet support to RichTextLabel BBCode
|
|
BBCode: [img region=0,0,16,16]res://icon.svg[/img]
|
|
irrelevant `Popup` flags from the editor inspector.
|
|
Replace all TODO uses of `#warning` by proper TODO comments, and will open
matching bug reports to keep track of them.
We don't have a great track record fixing TODOs, but I'd wager we're even
worse for fixing these "TODO #warning" so we should prohibit this usage.
|
|
Expose TreeItem::set_button_color
|
|
Fix inserting tabs in TextEdit
|
|
Improve bookmark and breakpoint indicators
|
|
|
|
|
|
|
|
Add warning for missing characters in label font
|
|
Getters for TextEdit scroll bars
|
|
|
|
|
|
|
|
|
|
change warnings=all to use /W4.
|
|
ColorPicker UX
|
|
|
|
Fix wrong condition used in `set_custom_color`
|
|
Add Multi-caret support to TextEdit
|
|
|
|
If a Control has not parent CanvasItem and is set as top_level, then it does not disconnect from the "size_changed" signal when it leaves the Canvas.
This patch corrects this.
|
|
|
|
|
|
Add searching by event in Editor Settings shortcuts and Project Settings input map.
|
|
Fix ScrollContainer touch-scrolling not working.
|
|
|
|
* MenuButton + OptionButton: Add method `show_popup()` which performs required popup setup before showing (prefer use of this over `get_popup()->popup()`, otherwise GH #66308 occurs)
* MenuButton: Ensure that the menu can be opened with a shortcut, if one is set for the button. (GH #66403). Ensure that popupmenu item shortcuts are checked first before the MenuButton shortcut.
|
|
input map.
* Focus into the LineEdit, then perform input to search the list of events by the events assigned.
* New specialised editor-only control for this: EventListenerLineEdit. Line edit is a good candidate for such a control because you can focus it, override it's input handling, and show the event all in one control.
Update InputEventConfigurationDialog to use event listener line edit rather than the separate tabs.
* Cleaner look - no need for tabs.
* Simpler code.
|
|
Update mouse cursor shape after changes
|
|
Fix MSVC warning C4702: unreachable code
|
|
|
|
Part of #66537.
|