Commit graph

996 commits

Author SHA1 Message Date
Anish Mishra
14dd595447 Fix uneditable LineEdit, TexEdit and CodeEdit Virtual Keyboard popup 2024-10-17 23:50:28 +05:30
David Snopek
36293a2dbf Fix renaming nodes on X11 2024-09-25 09:05:51 -05:00
Rémi Verschelde
720c236fc0
Merge pull request #90743 from timothyqiu/empty-selection-clipboard
Add TextEdit option to prevent copying without a selection
2024-09-23 12:27:35 +02:00
Haoyu Qiu
208797d54e Fix script editor not underlining Unicode identifiers when Ctrl-hovered 2024-09-21 14:10:05 +08:00
Haoyu Qiu
14321b8ed5 Set auto translate mode for drag previews
- Controls
  - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input.
  - `TabBar`: Use the same auto translate mode as the node.
  - `RichTextLabel`: Always disable since auto translation is done
    differently from other controls (selection text you get
    programmatically is always after auto translation).
- Editor
  - Disable drag preview auto translation if the text is user input,
    filename, or class name.
  - Also disabled unexpected auto translation for audio bus effect names.
2024-09-19 19:21:29 +08:00
David Snopek
b1871cdabf Fix project manager stealing focus on i3 2024-09-16 16:55:57 -05:00
Haoyu Qiu
504e0656bb Add TextEdit option to prevent copying without a selection 2024-09-14 09:39:36 +08:00
bruvzg
b776f55bcb
Add Control+Shift+U (rebindabe) action for Unicode input, show hex as it is entered. 2024-09-12 11:47:24 +03:00
Rémi Verschelde
c82c441ddd
Merge pull request #92865 from rune-scape/rune-optimal-code-edit
CodeEdit: Improve render time by 2x
2024-09-06 10:09:12 +02:00
rune-scape
60fa3ec4d4 CodeEdit: improve render speed 2024-09-04 20:51:09 -07:00
Rémi Verschelde
f69de1c522
Merge pull request #96038 from kitbdev/fix-line-edit-caret-word-mode
Fix LineEdit word mode when there are no more words
2024-09-04 17:12:06 +02:00
rune-scape
154049ce17 StringName Dictionary keys
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
2024-08-29 13:39:27 -07:00
Rémi Verschelde
62e98edf0f
Merge pull request #83070 from aaronfranke/textedit-fit-width
Implement fit content width in TextEdit
2024-08-27 22:27:09 +02:00
kit
3da4f457d0 Fix LineEdit word mode when there are no words 2024-08-24 12:28:18 -04:00
kit
93a81dd7aa Fix TextEdit caret movement at start of wrapped lines 2024-08-16 15:52:03 -04:00
Haoyu Qiu
7343dc3a5d Split TranslationServer into its own file 2024-08-15 15:00:47 +08: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
Rémi Verschelde
46aff5ce10
Merge pull request #94848 from kitbdev/fix-placeholder-fit-content
Fix TextEdit placeholder fit content height
2024-07-29 15:17:32 +02:00
kit
b6c054e793 Fix TextEdit placeholder fit content height 2024-07-27 17:14:51 -04:00
kit
36677798f1 Fix TextEdit scroll properties editor hint suffix 2024-07-26 18:18:29 -04:00
Rémi Verschelde
05504ebf27
Merge pull request #94439 from kitbdev/fix-reopen-hscroll
Fix ScriptEditor scrolling horizontally when reopening script
2024-07-23 15:55:32 +02:00
A Thousand Ships
d4cf294b35
Fix potential null access in TextEdit 2024-07-17 13:35:22 +02:00
kit
f8df6b1c70 Fix ScriptEditor scrolling horizontally on reopen 2024-07-16 11:19:58 -04:00
kit
fc16465d17 Fix dropping on selection in script editor 2024-07-04 19:42:38 -04:00
Volkan Gezer
76b2e5b2c8 add missing punctuation to the default list 2024-06-27 17:51:21 +02:00
Rémi Verschelde
b63df071bd
Merge pull request #92514 from /addWordSeparators 2024-06-25 09:19:35 +02:00
Volkan Gezer
e60678f193 enable custom separators to treat different characters as words 2024-06-24 20:43:13 +02:00
A Thousand Ships
fbb879debd
[Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
kit
630d3eb35e Don't error when undo stack is empty 2024-06-11 12:16:36 -04:00
Rémi Verschelde
1ee953030e
Merge pull request #92271 from kitbdev/fix-max-line-size
Fix TextEdit HScroll hiding after wrapping
2024-06-07 23:29:28 +02:00
Rémi Verschelde
c2d983553b
Merge pull request #91390 from kitbdev/add-selection-unhide-carets
Unhide carets in add selection for occurrence and fix error
2024-06-07 23:29:23 +02:00
bruvzg
d45b896673
Fix IME activation in subviewports. 2024-06-04 00:03:02 +03:00
A Thousand Ships
755a0efbb6
[Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
kit
af6b96c486 Fix minimap error when moving to the top 2024-05-30 12:06:02 -04:00
bruvzg
1d0a8ea828
[TextEdit] Use style margins for selection in read-only mode. 2024-05-29 10:07:32 +03:00
kit
948f09632e Unhide carets in add selection for occurrence 2024-05-27 15:30:18 -04:00
kit
66a8ee71aa Fix TextEdit HScroll hiding after wrapping 2024-05-27 14:56:55 -04:00
aaronp64
05cc8e7aaf Remove duplicate if/else code in TextEdit::_notification 2024-05-25 10:50:04 -04:00
kit
a53c8e8d70 Fix TextEdit minimap tab drawing and click check 2024-05-08 11:43:44 -04:00
kit
0162683da4 Fix TextEdit crash with multiple carets disabled 2024-05-02 09:26:08 -04: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 -04:00
kit
154f727c7a Overhaul TextEdit selection.
The caret is now a part of the selection.
2024-04-26 14:24:10 -04:00
kit
d9b0561601 Don't use vscroll when fit to content height in TextEdit 2024-04-25 19:19:08 -04:00
Christian Kaiser
91fff47fdc Use TextEdit caret color for minimap highlight 2024-04-25 04:27:49 -03:00
Aaron Franke
b1f5e9fe3a
Rename internal is_ascii_char to is_ascii_alphabet_char 2024-04-20 02:36:41 -07:00
kit
a1bde1b9db Fix caret last fit when moving to line end 2024-04-09 14:06:57 -04:00
Markus Sauermann
94e1943f02 Make TextEdit.clip_contents more transparent to users
Instead of ignoring `TextEdit.clip_contents`, use it with a default
value `true`. in the same way as `RichTextLabel`.
2024-03-28 21:07:27 +01:00
Rémi Verschelde
37766c4ef8
Merge pull request #89625 from kitbdev/not-the-end-of-the-line
Fix TextEdit selection end of line drawing for wrapped lines and gaps
2024-03-26 13:45:22 +01: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 +01:00
kit
63ac8c1106 Fix TextEdit selection end of line drawing 2024-03-18 10:13:21 -04:00