summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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 goto line issues in code editorkit2024-07-311-2/+2
|
* Implement trim_final_newlines functionalityAiden Storey2024-05-021-0/+2
|
* Store line change in script navigation historykobewi2024-04-251-0/+6
|
* Add const lvalue ref to editor/* container parametersMuller-Castro2024-02-261-4/+4
|
* Improved text editor status bar and zooming UX.Zi Ye2024-02-211-0/+1
|
* Add Duplicate Lines shortcut to CodeTextEditorPucklaMotzer092023-09-251-0/+1
| | | | 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.
* Add code region folding to CodeEditJean-Michel Bernard2023-09-111-0/+2
|
* Script editor: Show depended script errorsrune-scape2023-07-241-0/+1
|
* sort code completions with rulesajreckof2023-05-231-47/+0
| | | | | | | | | | | | | | | | | | | Fixups Add levenshtein distance for comparisons, remove kind sort order, try to improve as many different use cases as possible Trying again to improve code completion Sort code autocompletion options by similarity based on input To make it really brief, uses a combination `String.similiary`, the category system introduced in a previous PR, and some filtering to yield more predictable results, instead of scattering every completion option at seemingly random. It also gives much higher priority to strings that contain the base in full, closer to the beginning or are perfect matches. Also moves CodeCompletionOptionCompare to code_edit.cpp Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com> Co-Authored-By: Eric M <41730826+EricEzaM@users.noreply.github.com>
* Move convert_indent into CodeEditPaulb232023-05-071-2/+1
|
* Add shortcut for quick-toggling word wrapkobewi2023-04-191-0/+1
|
* Remove set_drag_forwarding_compat()kobewi2023-01-141-1/+0
|
* 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".
* Use forward-declarations in big editor classestrollodel2022-11-291-1/+5
|
* Set the shortcut context for the edit/search/goto menus to the ScriptEditor ↵Eric M2022-10-251-1/+1
| | | | so that shortcuts continue to work when FindReplaceBar is focused.
* Reorganize script editor menukobewi2022-10-141-1/+0
|
* Merge pull request #66300 from KoBeWi/📝🧭Rémi Verschelde2022-10-051-0/+1
|\ | | | | | | Split script navigation state and edit state
| * Split script navigation state and edit statekobewi2022-09-251-0/+1
| |
* | Rename Indent Left/Right to Indent/DedentVolTer2022-09-291-2/+2
|/
* Replace Array return types with TypedArraykobewi2022-08-221-1/+1
|
* Add a new HashSet templatereduz2022-05-201-1/+1
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-2/+2
| | | | | | | | | | | | * 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-2/+2
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Improve sorting of Code Completion options.Eric M2022-04-011-0/+47
| | | | Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
* Add GDExtension support to Scriptreduz2022-03-271-2/+2
| | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* Fix theming update of shader editorYuri Roubinsky2022-01-251-0/+5
|
* Convert TextEdit callbacks to CallablePaulb232022-01-191-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky2021-09-151-1/+1
|
* Merge pull request #51639 from Ev1lbl0w/gsoc21-dapFabio Alessandrelli2021-09-011-0/+2
|\ | | | | Implement more advanced features for DAP
| * Implemented advanced features of DAPEv1lbl0w2021-08-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Respect client "supportsVariableType" capability Implement "breakpointLocations" request Implement "restart" request Implement "evaluate" request Fix error messages not being shown, and improved wrong path message Removed thread option and behavior Implemented detailed inspection of complex variables Fix "const"ness of functions Added a configurable timeout for requests Implement Godot custom data request/event Implement syncing of breakpoints Added support for debugging native platforms
* | Improve Undo/Redo menu itemsHaoyu Qiu2021-08-171-0/+1
|/ | | | | | | | | | | * 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.
* Script editor: Rename 'Clone Down' to 'Duplicate Selection'Rémi Verschelde2021-06-291-1/+1
| | | | Fixes #36670.
* Added support for scripts reporting multiple errors to ScriptTextEditorEric M2021-06-191-0/+3
| | | | Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors.
* Move FindReplaceBar out of CodeTextEditorkobewi2021-06-081-0/+2
|
* Add custom background line colour to TextEdit and remove marked linesPaulb232021-05-221-0/+2
|
* Add get_base_editor to ScriptEditorBasesent442021-05-151-0/+2
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Move safe line color into editorPaulb232020-09-101-0/+4
|
* Move ConnectionGutter to editor code_editorPaulb232020-09-101-2/+5
|
* Add main_gutter (breakpoints, bookmarks, execution lines) to code_editPaulb232020-09-101-1/+1
|
* Optimized ScriptEditor initialization when many scripts are loadedPouleyKetchoupp2020-07-171-19/+24
| | | | | | | | | | | | | | 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-15/+3
| | | | | | | | - 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
* Convert syntax highlighters into a resourcePaulb232020-07-111-3/+3
|
* Add override keywords.Marcel Admiraal2020-07-101-33/+33
|
* Fix error label clicking in status bar for shader editorYuri Roubinsky2020-06-231-1/+0
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-2/+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.
* Merge pull request #37293 from Janglee123/ctrl-click-improvementsRémi Verschelde2020-05-051-0/+2
|\ | | | | Improved go-to definition (Ctrl + Click)