summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Add Caret Insert Below and Above shortcuts to TextEditPucklaMotzer092022-10-181-0/+119
| |/ /
* | | Merge pull request #67644 from alfredbaudisch/add-selection-next-occurrenceClay John2022-10-271-1/+46
|\ \ \ | |_|/ |/| | Add Selection and Caret for Next Occurrence of Selection
| * | Add Selection and Caret for Next Occurrence of SelectionAlfred Reinold Baudisch2022-10-211-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Code simplificationsMarkus Sauermann2022-10-181-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | 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
* / Fix undo redo not adjusting TextEdit viewport to caretPaulb232022-10-161-2/+2
|/
* Fix select word under caret using caret col instead of linePaulb232022-10-111-1/+2
|
* Merge pull request #67145 from Paulb23/tab_texteditRémi Verschelde2022-10-101-2/+11
|\ | | | | | | Fix inserting tabs in TextEdit
| * Handle tab in TextEditPaulb232022-10-091-2/+11
| |
* | Merge pull request #65805 from MewPurPur/improve-breakpoint-hoveringRémi Verschelde2022-10-101-3/+3
|\ \ | | | | | | | | | Improve bookmark and breakpoint indicators
| * | Improved breakpoints hover indicatorVolTer2022-10-101-3/+3
| | |
* | | Don't allow removing TextEdit's main caretHaoyu Qiu2022-10-101-1/+1
|/ /
* / Getters for TextEdit scrollbarsmicroaeris2022-10-071-0/+11
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-27/+27
| | | | change warnings=all to use /W4.
* Add split caret direction markers. Fix block/overtype caret size.bruvzg2022-10-071-2/+18
|
* Add mutliple Caret support to TextEditPaulb232022-10-051-985/+1724
|
* Move selecion into caretPaulb232022-10-031-217/+200
|
* [TextEdit] Use error/selection font color for the current glyph only, ↵bruvzg2022-09-231-9/+10
| | | | instead of updating cached font color.
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-3/+3
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Rename every instance of `caret_blink_speed` to `caret_blink_interval`Micky2022-09-061-7/+7
| | | | | | It's been changed in EditorSettings, LineEdit, TextEdit. Affects setters and getters, and passed parameters, too.
* Merge pull request #64917 from Tim-Fronsee/fix/add-gutter-total-widthRémi Verschelde2022-09-021-0/+6
|\
| * Fix TextEdit::gutters_width (total gutter width) when adding & removing a ↵Tim Fronsee2022-08-311-0/+6
| | | | | | | | | | | | | | | | gutter by calling TextEdit::_update_gutter_width in TextEdit::add_gutter & TextEdit::remove_gutter Update TextEdit gutters subcase, gutter add and remove to ensure gutter total width is correct Fix test_code_edit symbol lookup test case to include padding (+2)
* | Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-62/+62
|/ | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Add some codes, returnes directly if the value is not changed.风青山2022-08-231-6/+109
| | | | Avoid executing the following value-changed logics if the value does not really change.
* Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov2022-08-081-1/+1
|
* Add support for multiple virtual keyboard typesBrian Semrau2022-08-041-1/+1
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Implement support for loading system fonts on Linux, macOS / iOS and Windows.bruvzg2022-07-261-2/+4
|
* Fix too thin underline in brace matchkobewi2022-07-101-2/+2
|
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-110/+20
|
* Allow to disable TextEdit vertical scrollkobewi2022-07-041-3/+28
|
* Add an option to drag'n'drop selected text in TextEditConteZero2022-06-261-1/+13
|
* Add suffixes to all nodes and resourcesFireForge2022-06-111-5/+5
|
* Remove redundant min call when setting lineiwek2022-06-021-1/+1
|
* Fix typos with codespellRémi Verschelde2022-05-231-3/+3
| | | | Using codespell 2.2-dev from current git.
* Merge pull request #60955 from ↵Rémi Verschelde2022-05-181-6/+2
|\ | | | | | | | | pfertyk/issue-60668-fix-get-breakpointed-lines-crash Fix `get_breakpointed_lines` crashing Godot
| * Fix get_breakpointed_lines crashing GodotPaweł Fertyk2022-05-161-6/+2
| | | | | | | | Fixes #60668.
* | Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and ↵bruvzg2022-05-131-0/+45
|/ | | | CodeEdit.
* Fix backspace when selection reaches left edgePaweł Fertyk2022-05-091-1/+1
| | | | Fixes #60866.
* Merge pull request #60438 from Paulb23/text-edit-testsRémi Verschelde2022-04-251-27/+50
|\ | | | | Add TextEdit unit tests and multiple fixes.
| * Multiple small TextEdit Bug FixesPaulb232022-04-221-27/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed line_drawing_cache not containing anything Fixed is_move_caret_on_right_click_enabled requiring the context menu to be enabled Fixed when selecting_enabled is false not disabling shift + click Fixed when selecting_enabled is false not being able to drag the caret Fixed _delete emitting signals when nothing had changed. Fixed insert_line_at up causing a visual update Fixed get_pos_at_line_column returning a valid position when it was invalid Fixed set_caret_column unnecessary emitting "caret_changed" when the column is greater then the line Fixed select_word_under_caret not accepting the edges of words Fixed select_word_under_caret moving the caret to the start of the line when no word was found Fixed get_selection_line and get_selection_column not checking if the selection was enabled Fixed set_line_as_center_visible throwing errors if it would show line 0 Fixed set_line_as_center_visible being off by one Fixed set_line_as_last_visible not being able to show the first line Fixed pressing UP and the end of a wrapped line sending the caret to col 0 rather then then persevering the position.
* | Implement Label3D node.bruvzg2022-04-221-2/+2
|/ | | | | | | | | Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
* Fix shortcut_keys_enabled in TextEditConteZero2022-04-081-37/+38
|
* [Input] Add extra `shortcut_input` input processing step to process Unicode ↵bruvzg2022-04-051-0/+16
| | | | character input with Alt / Ctrl modifiers, after processing of shortcuts.
* Consider chained operation when selecting text in TextEdit::undo()Haoyu Qiu2022-04-051-3/+4
|
* Merge pull request #58452 from marcgpuig/text-edit-backspace-fixRémi Verschelde2022-04-041-21/+41
|\
| * Fixed ctrl + backspace on empty linesMarc Garcia Puig2022-04-041-21/+41
| | | | | | | | | | | | Fix <word><space><caret> scenario Fix move left & right for lines without words
* | Fix TextEdit v_scroll_speed invalid values breaks wheel scrollingjmb4622022-04-031-0/+7
|/
* Fix "p_from_line > p_to_line" errors in text editnova++2022-03-111-1/+5
| | | | Done via making the function more robust to different inputs
* Merge pull request #58739 from Calinou/control-add-constructorsRémi Verschelde2022-03-041-1/+3
|\ | | | | Add optional constructor arguments to more Control nodes
| * Add optional constructor arguments to more Control nodesHugo Locurcio2022-03-041-1/+3
| | | | | | | | | | | | | | | | | | This can be used to make editor code more compact. However, as of writing, these constructor arguments cannot be used from the scripting API. This was already provided for Label and CheckBox, but it was missing for other Control nodes where it made sense to provide a default value.