Commit Graph

330 Commits (cb1569345a6f17da08241e645ab03cb2e1b78d2f)

Author SHA1 Message Date
kit e2cbfb53f1 Deprecate TextEdit background_color 2025-11-13 22:48:04 +07:00
Pāvels Nadtočajevs e31830db52
[TextEdit] Make `wrap_right_offset` adjustable theme constant. 2025-10-18 21:35:02 +07:00
Thaddeus Crews 9e96c7d9b8
Merge pull request #110378 from timothyqiu/rtl-preview
Make text-related nodes translation domain aware
2025-10-16 12:48:05 +07:00
Thaddeus Crews caefb0f1c1
Merge pull request #110527 from WhalesState/text-edit-styles
Fix TextEdit `read_only` drawing.
2025-10-01 13:12:47 +07:00
Aaron Franke 1a7be001d2
Use const Array ref in `set_structured_text_bidi_override_options` 2025-09-26 14:31:38 +07:00
Mounir Tohami c07966583f Fix editor theme margins and TextEdit normal/read_only styles draw. 2025-09-24 20:42:22 +07:00
Haoyu Qiu 172c80df67 Make text-related nodes translation domain aware
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +07:00
Mounir Tohami b25e35cf58 Fix TextEdit styles and disable clipping.
Co-Authored-By: kit <kitbdev@gmail.com>
2025-09-21 07:32:30 +07:00
kit addae393a4 Fix TextEdit line wrap indent when disabled 2025-07-22 22:29:05 +07:00
Pāvels Nadtočajevs 8624134c89
[TextEdit] Draw guidelines under the text and caret. 2025-07-14 16:31:35 +07:00
kit ebf71cd4f3 Fix CodeEdit hover word lookup 2025-05-28 18:35:15 +07:00
Thaddeus Crews 8b4dd7a34e
Merge pull request #105724 from dugramen/recovery/split-commit
Add inline color pickers to script editor
2025-05-14 09:44:16 +07:00
Lukas Tenbrink 581e899785 Refactor `TextEdit::search` to be more robust to failure. 2025-05-14 10:16:42 +07:00
dugramen b9f59ae6ca Add color pickers to script editor 2025-05-13 18:03:21 +07:00
Fredia Huya-Kouadio f29feac7a5 Add a `LineEdit` / `TextEdit` property to control whether the virtual keyboard should show on focus 2025-05-05 22:01:34 +07:00
Koyper b668f45fd0 Fix LineEdit and TextEdit composite character backspace delete. 2025-04-23 15:14:09 +07:00
bruvzg aa0ade5b49
[TextEdit / LineEdit] Add support for OEM Alt codes input. 2025-04-10 08:52:19 +07:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +07:00
Pāvels Nadtočajevs 2fb5059c63
[TextEdit] Use actual indentation offset instead of space width for wrapped lines. 2025-03-19 12:50:43 +07:00
Thaddeus Crews 324512e11c
Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 +07:00
Thaddeus Crews 77231d81b4
Merge pull request #102514 from bruvzg/ts_wrp_indent
[TextEdit] Improve wrapped line indent handling.
2025-03-05 12:07:52 +07:00
kit b7a8138907 Fix TextEdit scrolls wrong on text selection 2025-02-28 13:19:46 +07:00
Pāvels Nadtočajevs 7da0767f35 [TextEdit] Update syntax highlighting when IME composition string is updated. 2025-02-07 11:54:56 +07:00
Pāvels Nadtočajevs 7aeffb8923 [TextEdit] Improve wrapped line indent handling. 2025-02-07 09:52:50 +07:00
Rémi Verschelde e87f4f67b0 Merge pull request #100913 from larspet/tooltip-hover-oob
Prevent tooltip from showing when hovering past the end of script line
2025-02-07 01:39:11 +07:00
kit 46fa85891b Fix center viewport not working horizontally 2025-01-25 17:53:53 +07:00
Lars Pettersson ff39adddd1
Prevent tooltip from showing when hovering past end of script line 2025-01-18 00:02:06 +07:00
kit 8274e64402 Fix TextEdit breakpoint hover not hiding 2025-01-16 10:42:54 +07:00
Pāvels Nadtočajevs b252867145 [macOS/Windows] Add `Emoji & Symbols` context menu item to LineEdit/TextEdit to show system character picker. 2025-01-10 09:25:34 +07:00
Aarni Koskela f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +07:00
Thaddeus Crews 89a311205f
Style: Apply `clang-tidy` fixes
• `modernize-use-default-member-init` and `readability-redundant-member-init`
• Minor adjustments to `.clang-tidy` to improve syntax & remove redundancies
2024-11-04 12:11:06 +07:00
Adam Scott 0d350e7108
Set clang-format `RemoveSemicolon` rule to `true`
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 +07:00
Haoyu Qiu 504e0656bb Add TextEdit option to prevent copying without a selection 2024-09-14 09:39:36 +07:00
bruvzg b776f55bcb
Add Control+Shift+U (rebindabe) action for Unicode input, show hex as it is entered. 2024-09-12 11:47:24 +07:00
rune-scape 60fa3ec4d4 CodeEdit: improve render speed 2024-09-04 20:51:09 +07:00
Aaron Franke 3b8afcd10c
Implement fit content width in TextEdit
Co-authored-by: Kit Bishop <kitbdev@gmail.com>
2024-08-04 15:14:56 +07:00
kit b6c054e793 Fix TextEdit placeholder fit content height 2024-07-27 17:14:51 +07:00
kit fc16465d17 Fix dropping on selection in script editor 2024-07-04 19:42:38 +07:00
Volkan Gezer e60678f193 enable custom separators to treat different characters as words 2024-06-24 20:43:13 +07:00
kit 773a473807 Overhaul multiple caret editing in TextEdit.
Use a multicaret edit to delay merging overlapping carets until the end.
2024-04-26 14:26:10 +07:00
kit 154f727c7a Overhaul TextEdit selection.
The caret is now a part of the selection.
2024-04-26 14:24:10 +07:00
Christophe Andral c988bec4b3 Add 'Skip to next (text) occurrence' feature to text editor
Adds `ui_text_skip_selection_for_next_occurrence` action and related implementation to text editor.
This action is bound `Ctrl+Alt+D` shorcut.

Used in conjonction with `ui_add_skip_selection_for_next_occurrence`, it gives the user the ability to select many occurrences of a selection
and avoid some of them.
Used without a previous selection, the action jumps to the next occurrence of the current word under the caret.
2024-03-25 11:12:28 +07:00
bruvzg dad4aae386
[TextEdit] Add support for optional wrapped line indentation. 2024-02-26 08:20:14 +07:00
kit a6af442b05 Apply TextEdit IME on most actions 2024-01-29 15:07:19 +07:00
Bram Buurlage 6ffa9b0635 Editor: fix code editor scrolling experience on track pads 2023-09-30 10:55:14 +07:00
Yuri Sizov fee1fb8290 Connect `CodeHighlighter` with `TextEdit` without friend-access 2023-09-19 14:36:38 +07:00
Yuri Sizov fe000277ea Bind remaining theme properties to their respective classes
This adds binds for GraphEdit/GraphElement/GraphNode, which were
skipped before due to a rework. This also adds binds for Window,
which was skipped before due to a complicated code organization.

Also adds theme cache entries/direct cache access to a few places
that previously missed it. Some theme properties are now exposed
to other classes via friendships or public getters for convenience.

This removes all string-based theme access from scene/ classes.
2023-09-13 19:31:35 +07:00
Jean-Michel Bernard 67dce301aa Add code region folding to CodeEdit 2023-09-11 18:36:40 +07:00
bruvzg 5d3fcc5766
[TextServer] Fix system font fallback and caret/selection behavior for composite characters. 2023-08-15 11:42:40 +07:00
bruvzg 75e6ec8874
[TextEdit] Expose all auto-wrap modes. 2023-06-13 10:28:27 +07:00