summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Fix TextEdit placeholder fit content heightkit2024-07-271-0/+1
|
* Fix dropping on selection in script editorkit2024-07-041-0/+1
|
* enable custom separators to treat different characters as wordsVolkan Gezer2024-06-241-0/+28
|
* Overhaul multiple caret editing in TextEdit.kit2024-04-261-12/+34
| | | | Use a multicaret edit to delay merging overlapping carets until the end.
* Overhaul TextEdit selection.kit2024-04-261-21/+33
| | | | The caret is now a part of the selection.
* Add 'Skip to next (text) occurrence' feature to text editorChristophe Andral2024-03-251-0/+1
| | | | | | | | | 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.
* [TextEdit] Add support for optional wrapped line indentation.bruvzg2024-02-261-0/+7
|
* Apply TextEdit IME on most actionskit2024-01-291-0/+6
|
* Editor: fix code editor scrolling experience on track padsBram Buurlage2023-09-301-2/+2
|
* Connect `CodeHighlighter` with `TextEdit` without friend-accessYuri Sizov2023-09-191-2/+2
|
* Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-7/+8
| | | | | | | | | | | | 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.
* Add code region folding to CodeEditJean-Michel Bernard2023-09-111-0/+1
|
* [TextServer] Fix system font fallback and caret/selection behavior for ↵bruvzg2023-08-151-1/+1
| | | | composite characters.
* [TextEdit] Expose all auto-wrap modes.bruvzg2023-06-131-0/+7
|
* Add an option to show a TextEdit caret when editable is disabledjeffVenancius2023-04-071-0/+4
| | | | Update doc/classes/TextEdit.xml
* Implement theme item cache in TextEdit and CodeEditYuri Sizov2023-04-031-29/+41
|
* Remove methods in header removed in c7eb814George L. Albany2023-03-151-3/+0
| | | | | | | | | c7eb814 missed these methods in the RichTextLabel's header Remove set_override_selected_font_color from rich_text_label.h Remove is_override_selected_font_color from rich_text_label.h c7eb814 missed these methods in the TextEdit's header Remove set_override_selected_font_color from text_edit.h Remove is_override_selected_font_color from text_edit.h
* Fix `LineEdit` and `TextEdit` context menus not customizableDanil Alexeev2023-01-271-1/+4
|
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-1/+1
|
* 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".
* Unified shortcut to clear carets and selectionsAlfred Reinold Baudisch2022-11-021-1/+1
| | | | | | | | | 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/+1
| | | | | | | | | | 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-2/+2
|\ | | | | | | Remove `override_selected_font_color` property
| * Remove override_selected_font_color propertykobewi2022-10-261-2/+2
| |
* | Merge pull request #67139 from PucklaMotzer09/insert_caret_at_caretsRémi Verschelde2022-10-311-0/+4
|\ \ | | | | | | | | | Add Caret Insert Below and Above shortcuts to TextEdit
| * | Add Caret Insert Below and Above shortcuts to TextEditPucklaMotzer092022-10-181-0/+4
| |/
* / Add Selection and Caret for Next Occurrence of SelectionAlfred Reinold Baudisch2022-10-211-0/+1
|/ | | | | | | | | | | | | | 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.
* Getters for TextEdit scrollbarsmicroaeris2022-10-071-0/+3
|
* Add mutliple Caret support to TextEditPaulb232022-10-051-47/+97
|
* Move selecion into caretPaulb232022-10-031-24/+24
|
* Rename every instance of `caret_blink_speed` to `caret_blink_interval`Micky2022-09-061-2/+2
| | | | | | It's been changed in EditorSettings, LineEdit, TextEdit. Affects setters and getters, and passed parameters, too.
* Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+3
| | | | Avoid executing the following value-changed logics if the value does not really change.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-11/+1
|
* Allow to disable TextEdit vertical scrollkobewi2022-07-041-0/+5
|
* Add an option to drag'n'drop selected text in TextEditConteZero2022-06-261-0/+4
|
* Replace most uses of Map by HashMapreduz2022-05-161-2/+1
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and ↵bruvzg2022-05-131-0/+4
| | | | CodeEdit.
* Implement Label3D node.bruvzg2022-04-221-3/+3
| | | | | | | | | 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.
* [Input] Add extra `shortcut_input` input processing step to process Unicode ↵bruvzg2022-04-051-0/+1
| | | | character input with Alt / Ctrl modifiers, after processing of shortcuts.
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-5/+5
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Add optional constructor arguments to more Control nodesHugo Locurcio2022-03-041-1/+1
| | | | | | | | | 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.
* [TextServer] Add function to change font, font size, and OpenType features ↵bruvzg2022-02-021-1/+2
| | | | without invalidating line break points, justification points, or recreating shaped text buffer.
* Move placeholder color to theme itemPaulb232022-01-301-5/+1
|
* Add Placeholder to TextEditPaulb232022-01-231-0/+20
|
* Convert TextEdit callbacks to CallablePaulb232022-01-191-7/+4
|
* [TextServer] Improve ligature cursor handling.bruvzg2022-01-091-1/+1
| | | | | | Fix mid-grapheme hit test. Fix OpenType features property handling, add default features override option. Enable mid-grapheme cursor by default.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix various typosluz paz2022-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change