summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
AgeCommit message (Collapse)Author
2021-06-20Move indent management to CodeEditPaulb23
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-19Remove redundant keywords from TextEditPaulb23
2021-06-01Move code folding into CodeEdit and hide line hiding APIPaulb23
2021-06-01Merge pull request #45393 from Paulb23/code_edit_autocompleteRémi Verschelde
2021-06-01Move and expose Code Hint in CodeEditPaulb23
2021-06-01Move and expose AutoComplete in CodeEditPaulb23
2021-06-01Fix TextEdit selection drawing behing minimapPaulb23
2021-05-25Merge pull request #48955 from Calinou/editor-tweak-property-hintsRémi Verschelde
Tweak dozens of editor property hints for consistency
2021-05-25Tweak dozens of editor property hints for consistencyHugo Locurcio
- Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
2021-05-22Add a keyboard shortcut to select the word under cursor in TextEditHugo Locurcio
This also acts as a general-purpose "deselect" shortcut since pressing it a second time will deselect text. This is available both in the script editor and in TextEdit fields in use, both in the editor and projects. The Duplicate Line script editor shortcut was moved to Ctrl + Shift + D since it conflicts with the new shortcut (Ctrl + D). The rationale for doing so is that Duplicate Line is a less commonly used action, and its behavior can be replicated by copying and pasting the current line anyway. (With no selection active, the whole line will be copied.)
2021-05-22Add custom background line colour to TextEdit and remove marked linesPaulb23
2021-05-18Merge pull request #48528 from sent44/texteditRémi Verschelde
Expose get_total_visible_rows method to GDScript
2021-05-17Fix build after mismatch between #48168 and #48599Rémi Verschelde
2021-05-17Merge pull request #48599 from Calinou/textedit-alt-scroll-fasterRémi Verschelde
Scroll faster when holding Alt in TextEdit (and script editor)
2021-05-17Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde
2021-05-10Scroll faster when holding Alt in TextEdit (and script editor)Hugo Locurcio
This feature is inspired by a similar feature found in Visual Studio Code.
2021-05-07Display arrow cursor if text is not editablekobewi
2021-05-07Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A
InputEventWithModifiers properties/methods
2021-05-07Expose get_total_visible_rows as get_visible_line_countsent44
2021-05-04Rename `doubleclick` to `double_click`Aaron Franke
2021-04-25Fix indent left line selectionKoala
2021-04-15Fixed ui_accept (spacebar + return) accepting auto-completion options.Eric M
2021-04-06Fix TextEdit cursor update when adding or deleting textPouleyKetchoupp
Updating the viewport while setting the line index before the column is set could wrongly cause the text to be scrolled down.
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-23Rename ButtonList enum and members to MouseButtonAaron Franke
2021-03-21Merge pull request #46280 from floppyhammer/AdjustCompletionPanelPositionRémi Verschelde
Improve Completion Panel Position in Shader Editor
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-11Add IME support checks in LineEdit/TextEdit.Fabio Alessandrelli
Avoid spamming "IME is unsupported" when the DisplayServer report it as such.
2021-03-07Merge pull request #46572 from ↵Rémi Verschelde
jmb462/fix-selection-error-after-commenting-or-indenting Fix selection error after commenting or indenting text (Fix #46477 issue)
2021-03-07Merge pull request #46627 from ↵Rémi Verschelde
jmb462/fix-incorrect-autoindentation-in-multiline-brackets Fix incorrect auto-indentation in multiline brackets (fix #46384)
2021-03-03fix incorrect iauto-indentation in mutliline bracket (fix #46384)jmb462
2021-03-01fix selection error after commenting or indenting textjmb462
2021-03-01LineEdit: Now double click to select a word, and triple click to select all ↵Mateo Kuruk Miccino
the content using the new TextServer TextEdit: Update the method to search words with the new TextServer
2021-02-22ImproveCompletionPanelPositionInShaderEditorfloppyhammer
2021-02-18Removed hardcoded shortcuts from /scene and converted to input actionsEric M
This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-13Merge pull request #45858 from nekomatata/text-edit-style-content-marginsRémi Verschelde
TextEdit respects content margin from StyleBox
2021-02-13Merge pull request #45881 from nekomatata/textedit-wrap-autoscrollRémi Verschelde
Fix TextEdit autoscroll with wrapped lines
2021-02-12Fix TextEdit autoscroll with wrapped linesPouleyKetchoupp
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
2021-02-12TextEdit respects content margin from StyleBoxPouleyKetchoupp
Now TextEdit adjusts x & y offset according to the corresponding StyleBox when in normal or read-only mode. In order to handle bottom content margin, wrapped lines that are entirely outside the stylebox content area are not drawn.
2021-02-12Fix LineEdit minimum widthreduz
-Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
2021-02-12Use get_char_size(' ') to calculate space width.bruvzg
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-02-07TextEdit: When left mouse is pressed to place the cursor, do not immediately ↵Oliver Dick
adjust the viewport when cursor_set_line is called, but afterwards on cursor_set_column (effectively when the cursor reached its final position) Fixes #45770
2021-02-01Merge pull request #45110 from fmazan/completion-panel-positioningRémi Verschelde
Fixed completion and hint panel positioning in TextExit
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-14Fix TextEdit drawing Caret and icons out of boundsPaulb23
2021-01-11Fixed completion and hint panel positioning in TextExitFilip