summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb232020-09-101-2/+3
|
* Add and convert editor to use CodeEditPaulb232020-09-101-21/+21
|
* Make unsaved scripts in the script editor more user-friendlyAndrii Doroshenko (Xrayez)2020-07-261-1/+7
| | | | | | | | | | | | | | | Unsaved scripts were previously displayed with blank tabs, which are mostly a result of deleted or improperly moved scripts. This patch makes sure that those kind of scripts are displayed as "[unsaved]" now, and ensures that scripts are removed from the list while deleting scripts from the filesystem dock preventing the unsaved tabs to appear in the first place (a user is already prompted with "no undo" warning while deleting any file). A user is always prompted to save those "[unsaved]" scripts if they attempt to close them without saving in any case except as described above.
* Optimized ScriptEditor initialization when many scripts are loadedPouleyKetchoupp2020-07-171-16/+26
| | | | | | | | | | | | | | This change avoids the editor to freeze for several seconds when a project with lots of scripts is loaded in the editor. It focuses on a few heavy operations previously executed on all previously loaded scripts: - Initialize script resource (script validation/parsing) only on focus - ScriptTextEditor: code editor and edit menu are added to the scene only on focus - Add to recent scripts only when opening new scripts (load/save scene metadata)
* Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb232020-07-111-45/+15
| | | | | | | | - Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher
* Expose Syntax highlighter for editor pluginsPaulb232020-07-111-0/+1
|
* Convert syntax highlighters into a resourcePaulb232020-07-111-14/+9
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-1/+2
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-61/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Replace NULL with nullptrlupoDharkael2020-04-021-6/+6
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-36/+36
|
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-1/+1
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-1/+1
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-19/+11
|/ | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-11/+11
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-1/+1
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Added 'Replace in files' functionality to text editorsDominik 'dreamsComeTrue' Jasiński2020-02-131-0/+7
| | | | Fixes issue #31146
* Texture refactorJuan Linietsky2020-02-111-1/+1
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Removed translation for bookmarks menu item name in TextEditorPouleyKetchoupp2019-11-251-1/+1
| | | | Only the label's text needs a translation, and it could cause issues when getting the node by name in a different language.
* Remove dependency on the editor directory being in the build's include path.Marcel Admiraal2019-10-101-1/+1
| | | | | | | - Add or remove the necessary subdirectorires to the includes to remove dependency on the editor directory being in the build's include path. - Ensure includes in modified files conform to style guideline. - Remove editor from the build include path.
* Support menu key in TextEdit and LineEdit controlsPaul Trojahn2019-09-221-3/+12
| | | | Related to #15542
* Add "Find in Files..." to the text editorMichael Alexsander Silva Dias2019-08-121-2/+12
|
* Move "Go to Line..." from "Edit" to "Go To" in text editorMichael Alexsander Silva Dias2019-08-091-20/+27
|
* Fix Find in Files Not Working ProperlyEmmanuel Barroga2019-08-061-0/+5
| | | When using the "Find in Files" option to search in non-script files (e.g. .tscn), the search does not work properly.
* Fix memory leaks with SyntaxHighlightersPaulb232019-07-251-0/+9
|
* Merge pull request #29071 from YeldhamDev/improve_bookmarksRémi Verschelde2019-07-011-9/+49
|\ | | | | Improve bookmarks
| * Improve bookmarksMichael Alexsander Silva Dias2019-05-241-9/+49
| |
* | Correct typo that broke custom selected font colorGwyneth Lowe2019-06-241-1/+1
| | | | | | | | Change several font_selected_color to font_color_selected; the actual name of the override
* | Merge pull request #28766 from pgoral/editor_validation_issueRémi Verschelde2019-06-171-0/+3
|\ \ | | | | | | Changing method signature in other class in not recognized in working…
| * | Changing method signature in other class in not recognized in working class ↵Goral2019-05-291-0/+3
| | | | | | | | | | | | in typed GDScript #28685
* | | Merge pull request #29262 from DarknessCatt/issue-27476Rémi Verschelde2019-06-111-0/+5
|\ \ \ | |_|/ |/| | Automatically add new line to scripts
| * | Automatically add new line to scriptsMatheus Lima Cunha2019-05-291-0/+5
| | |
* | | Merge pull request #28218 from KoBeWi/b00km4rk5Rémi Verschelde2019-05-201-0/+28
|\ \ \ | | | | | | | | Add bookmarks for easier code navigation
| * | | Add bookmarks for easier code navigationTomasz Chabora2019-05-051-0/+28
| | |/ | |/|
* | | Merge pull request #26809 from KoBeWi/undo_set_text_like_a_bossRémi Verschelde2019-05-201-1/+0
|\ \ \ | |/ / |/| | Allow to undo TextEdit.set_text
| * | Allow to undo TextEdit.set_textTomasz Chabora2019-05-161-1/+0
| |/
* | Added a marker in text_edit that tells which row is executing.Rikhardur Bjarni Einarsson2019-04-231-0/+11
| |
* | Restore script editor state between sessionsPaulb232019-04-131-2/+8
|/
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix missing/malformed license headersRémi Verschelde2019-01-011-1/+1
|
* Revert "Use more subtle indentation guides in the script editor"Rémi Verschelde2018-12-131-2/+0
|
* Merge pull request #20725 from Calinou/textedit-subtle-indent-guidesRémi Verschelde2018-12-091-0/+2
|\ | | | | Use more subtle indentation guides in the script editor
| * Use more subtle indentation guides in the script editorHugo Locurcio2018-10-031-0/+2
| |
* | Fix clone line undo history and extra new line, issue 21811Paulb232018-11-041-1/+1
| |
* | Increase the source font's line spacingHugo Locurcio2018-10-141-1/+1
| | | | | | | | | | This also increases line spacing in license texts in the editor's About dialog.
* | Fixed syntax highlighting setting not being savedDualMatrix2018-09-201-1/+2
| | | | | | | | Fixed syntax highlighting setting not being saved
* | Refactor editor icon retrievalwillnationsdev2018-09-141-4/+3
| |
* | Misc. typosluz.paz2018-09-121-1/+1
|/ | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* Allow opening and editing of any utf_8 file in script editorPaulb232018-07-221-0/+607