summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add const lvalue ref to editor/* container parametersMuller-Castro2024-02-261-1/+1
|
* Add methods to add submenus without using nameskobewi2024-02-221-9/+3
|
* Improved text editor status bar and zooming UX.Zi Ye2024-02-211-2/+6
|
* Apply TextEdit IME on most actionskit2024-01-291-0/+3
|
* Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-1/+1
|
* Make the text editor consistent with the script editorAdam Scott2024-01-231-15/+15
|
* Update deferred calls to use Callableskobewi2024-01-091-6/+6
|
* Fix node names of submenu items across the editorYuri Sizov2023-11-081-6/+6
| | | | Also removes some programmer remarks and fixes some docs.
* Add Duplicate Lines shortcut to CodeTextEditorPucklaMotzer092023-09-251-0/+4
| | | | This keyboard shortcut has been made with inspiration from the VS Code keyboard shortcut editor.action.copyLinesDownAction. It duplicates all selected lines and inserts them below no matter where the caret is within the line.
* Single Compilation Unit build.lawnjelly2023-06-061-1/+1
| | | | | Adds support for simple SCU build (DEV_ENABLED only). This speeds up compilation by compiling multiple cpp files within a single translation unit.
* Move convert_indent into CodeEditPaulb232023-05-071-8/+6
|
* Add shortcut for quick-toggling word wrapkobewi2023-04-191-0/+5
|
* Fix line folding with multiple caretskobewi2023-02-211-2/+7
|
* Support editing JSON in ScriptEditorPaulb232023-01-281-13/+58
|
* Remove set_drag_forwarding_compat()kobewi2023-01-141-2/+0
|
* Change set_drag_forwarding() to use callables.Juan Linietsky2023-01-101-1/+1
| | | | | | | | * This solution is much cleaner than the one in 3.x thanks to the use of callables. * Works without issues in any language (no need to worry about camel or snake case). * Editor code uses a compatibility function (too much work to redo). Fixes #59899
* 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".
* Fix various fringe issues with multi-carets and selectionsVolTer2022-12-071-1/+3
|
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-1/+1
|\ | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
| |
* | Set the shortcut context for the edit/search/goto menus to the ScriptEditor ↵Eric M2022-10-251-1/+10
|/ | | | so that shortcuts continue to work when FindReplaceBar is focused.
* Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde2022-10-061-3/+4
|\ | | | | | | Add Multi-caret support to TextEdit
| * Add multi caret support to EditorPaulb232022-10-051-3/+4
| |
* | Merge pull request #66300 from KoBeWi/📝🧭Rémi Verschelde2022-10-051-0/+4
|\ \ | |/ |/| | | Split script navigation state and edit state
| * Split script navigation state and edit statekobewi2022-09-251-0/+4
| |
* | Fix the flickering of the line gutter icon when savingRindbee2022-10-031-0/+1
| |
* | Rename Indent Left/Right to Indent/DedentVolTer2022-09-291-8/+8
|/
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-3/+3
| | | | | | | | | | 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`.
* Replace Array return types with TypedArraykobewi2022-08-221-3/+3
|
* Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-311-0/+1
| | | | up editor includes
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-1/+1
|
* Replace most uses of Map by HashMapreduz2022-05-161-5/+5
| | | | | | | | | | | | * 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!
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-3/+3
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-1/+1
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-1/+1
| | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-1/+1
|
* Convert TextEdit callbacks to CallablePaulb232022-01-191-2/+4
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix bad popups offset in editor with single window offjmb4622021-12-061-1/+1
| | | | | Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky2021-11-221-1/+1
|
* Use "enum class" for input enumsAaron Franke2021-11-121-1/+1
|
* Improve save handling for built-in scriptskobewi2021-11-071-11/+14
|
* Add is_built_in() method to Resourcekobewi2021-11-041-1/+1
|
* Move add_syntax_highlighter bind to ScriptEditorBasePaulb232021-10-111-4/+0
|
* Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky2021-09-151-0/+5
|
* Improve Undo/Redo menu itemsHaoyu Qiu2021-08-171-0/+12
| | | | | | | | | | | * Make Undo/Redo menu items disabled when clicking it does nothing. * Context menu of `TextEdit` * Context menu of `LineEdit` * Editor's Scene menu * Script editor's Edit menu and context menu (for Script and Text) * Make editor undo/redo log messages translatable. * Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`. * Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
* Reorganise text editor settingsPaulb232021-08-161-1/+1
|