summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add code region folding to CodeEditJean-Michel Bernard2023-09-111-0/+2
| |
* | Merge pull request #81312 from YuriSizov/theme-static-bindsRémi Verschelde2023-09-111-43/+45
|\ \ | | | | | | | | | Register theme properties with ThemeDB
| * | Register theme properties with ThemeDBYuri Sizov2023-09-111-43/+45
| | |
* | | Merge pull request #80956 from MarcusElg/deselectmulticaretRémi Verschelde2023-09-111-2/+18
|\ \ \ | |/ / |/| | | | | Deselect multi caret when alt clicking on it
| * | Deselect multi caret when alt clicking on itMarcus Elg2023-09-031-2/+18
| |/
* / Fix TextEdit placeholder with Inherited text direction.bruvzg2023-09-071-1/+5
|/
* Fixes a text find perf issue, if can't find anyjsjtxietian2023-08-201-0/+5
| | | | | | match words, just early break the while loop. This will improve a lot when p_search.length is way too long since p_from_column will only plus 1 every loop
* [TextServer] Fix system font fallback and caret/selection behavior for ↵bruvzg2023-08-151-4/+11
| | | | composite characters.
* [TextEdit] Expose all auto-wrap modes.bruvzg2023-06-131-32/+72
|
* Fix crash when selecting lines in text editRedworkDE2023-05-301-1/+3
|
* Merge pull request #76605 from Rindbee/fix_get_visible_line_countRémi Verschelde2023-05-161-1/+4
|\ | | | | | | Fix calculation bug with `TextEdit::get_line_height()`
| * Fix calculation bug with `TextEdit::get_line_height()`Rindbee2023-05-151-1/+4
| | | | | | | | | | | | When `get_line_height()` is less than `1`, there is no visible text. So limit the return value of `get_line_height()` to **not less** than `1` for calculation.
* | Fix right click in selection of additional caretJean-Michel Bernard2023-05-081-13/+18
|/
* Merge pull request #74623 from MewPurPur/edit-text-with-styleYuri Sizov2023-04-171-82/+63
|\ | | | | Code style improvements to text_edit and related
| * Code style improvements to text_edit and relatedVolTer2023-04-081-82/+63
| |
* | [TextServer] Use dedicated flag for object replacement characters.bruvzg2023-04-121-1/+1
| |
* | Add an option to show a TextEdit caret when editable is disabledjeffVenancius2023-04-071-1/+17
|/ | | | Update doc/classes/TextEdit.xml
* Implement theme item cache in TextEdit and CodeEditYuri Sizov2023-04-031-134/+144
|
* Merge pull request #75597 from bruvzg/tx_blockRémi Verschelde2023-04-031-1/+1
|\ | | | | | | [TextEdit] Fix block caret size at the end of the line.
| * [TextEdit] Fix block caret size at the end of the line.bruvzg2023-04-021-1/+1
| |
* | Merge pull request #73074 from M4rYu5/capslock-editor-completion-fixRémi Verschelde2023-04-031-2/+2
|\ \ | |/ |/| | | Editor: Ignore CapsLock when pressed alone
| * Now, in editor, CapsLock behave like a modifier key: does nothing when ↵M4rYu52023-02-131-2/+2
| | | | | | | | | | | | pressed alone. Before, it ended up closing the code completion, and rerendering portions of editor.
* | Fix get_drag_data not overridable in some Controlskobewi2023-03-201-0/+5
| |
* | [TextEdit] Do not draw virtual spaces (word break / justification points).bruvzg2023-03-061-1/+1
| |
* | Fix IME position in the single window mode sub-windows.bruvzg2023-03-061-2/+10
| |
* | [TextEdit / IME] Check selection before deleting to avoid unnecessary error ↵bruvzg2023-02-271-1/+1
| | | | | | | | messages.
* | Fix ctrl+backspace crash with multicarets on the same linePaulb232023-02-191-0/+1
| |
* | Fix error spam when hovering minimap in the script editorJames Mintram2023-02-161-1/+3
|/
* Fix `LineEdit` and `TextEdit` context menus not customizableDanil Alexeev2023-01-271-83/+113
|
* [Windows] Fix committing IME text without IME deactivation.bruvzg2023-01-261-0/+13
|
* PropertyUsage: Rename "DO_NOT_SHARE_ON_DUPLICATE" to "ALWAYS_DUPLICATE"Aaron Franke2023-01-241-1/+1
|
* Cleanup and unify keyboard input.bruvzg2023-01-231-4/+10
| | | | | | | | | | - Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
* Implement BiDi override mode for GDScript source.bruvzg2023-01-181-1/+9
|
* Use BitField<> in core type masksJuan Linietsky2023-01-081-1/+1
| | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde2023-01-061-4/+2
|\ | | | | Add PropertyInfo overload for GLOBAL_DEF
| * Add PropertyInfo overload for GLOBAL_DEFkobewi2022-12-111-4/+2
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | [TextEdit] Fix IME intermediate text not displayed when TextEdit is empty ↵bruvzg2022-12-131-1/+1
|/ | | | and placeholder is set.
* Fix highlight overlaps in TextEditDanil Alexeev2022-12-061-8/+11
|
* Script editor: Fix edge case when double-click incorrectly updates caret ↵Eduard Zalyaev2022-12-031-2/+2
| | | | | | position Fixes #68898.
* Fix error while selecting last empty lineAdam Scott2022-11-231-1/+1
|
* Mouse click deselect removes secondary carets and puts primary caret under ↵Alfred Reinold Baudisch2022-11-061-0/+6
| | | | | | mouse position Fixes and closes #67993.
* Style: Misc docs and comment style and language fixesRémi Verschelde2022-11-021-3/+3
| | | | | | | | | | - Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
* Unified shortcut to clear carets and selectionsAlfred Reinold Baudisch2022-11-021-7/+20
| | | | | | | | | Refactors`ui_text_remove_secondary_carets` from https://github.com/godotengine/godot/pull/68089 as `ui_text_clear_carets_and_selection`, with extra behaviour: - If there's only one active caret active with a selection, clears the selection. - In case there's more than one caret active, removes the secondary carets and clears selections. With this change, `TextEdit` then imitates the behaviour of VSCode for clearing carets and selections.
* Shortcut and Bind to Remove Secondary CaretsAlfred Reinold Baudisch2022-10-311-0/+9
| | | | | | | | | | Adds the bind `ui_text_remove_secondary_carets` to TextEdit, with ESC as the default shortcut. When the bind is performed, if the TextEdit has multiple carets, `remove_secondary_carets` is called and secondary carets are removed. This is useful when multiple selects are performed with `add_select_for_next_occurrence` #67644 or when multiple multiple carets are manually added, then it's possible to go back to a single caret with a shortcut. Closes #67991
* Merge pull request #67888 from KoBeWi/overrideadRémi Verschelde2022-10-311-13/+2
|\ | | | | | | Remove `override_selected_font_color` property
| * Remove override_selected_font_color propertykobewi2022-10-261-13/+2
| |
* | Merge pull request #67496 from Paulb23/text-edit-crashesRémi Verschelde2022-10-311-0/+6
|\ \ | | | | | | | | | Fix TextEdit action and CodeEdit completion crash
| * | Forcibly end current TextEdit action on undo redoPaulb232022-10-161-0/+6
| | |
* | | Merge pull request #67139 from PucklaMotzer09/insert_caret_at_caretsRémi Verschelde2022-10-311-0/+119
|\ \ \ | | | | | | | | | | | | Add Caret Insert Below and Above shortcuts to TextEdit