summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul multiple caret editing in TextEdit.kit2024-04-261-314/+294
| | | | Use a multicaret edit to delay merging overlapping carets until the end.
* Overhaul TextEdit selection.kit2024-04-261-4/+18
| | | | The caret is now a part of the selection.
* Add editor settings for autocompletion with NodePath and StringNameVolTer2024-03-191-2/+9
|
* Fix bug related to multicursor and backspacing with bracketsGarrett Gu2024-03-141-4/+5
|
* Fix region section not ignoring #region and #endregion when in a stringRafael Chuva2024-03-111-0/+6
| | | | | | | | | | | | When using the script editor, if the keywords #region and #endregion where in a string and ate the start of the line, the editor would not ignore them and count them as the actual keywords, which when folded, would only fold until the first #endregion in a string, for example. By checking if these keywords were in a string, this commit now ensures the editor ignores strings and fold the section correctly. Fixes #89115.
* Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-2/+2
|
* Fix some DEFVALs to use the right typeRaul Santos2024-02-231-1/+1
| | | | | - Use `StringName()` in DEFVAL for StringNames. - Use `Variant()` in DEFVAL for Variants.
* Apply TextEdit IME on most actionskit2024-01-291-1/+2
|
* Merge pull request #85191 from HolonProduction/off-by-one-code-editYuri Sizov2023-12-201-1/+1
|\ | | | | | | Fix updating delimiter cache of `CodeEdit` when typing on the first line
| * Fix updating delimiter cache of `CodeEdit` when typing on the first lineHolonProduction2023-12-181-1/+1
| |
* | Make it possible to show code hint and code completion at the same timeCHM2023-12-191-117/+138
|/ | | | | | Make code completion position more consistent Add whitespace before if
* Code Editor: Fix regression with using doc comments for code regionsDanil Alexeev2023-10-131-1/+4
|
* Fix code completion override of home and end keysAdam Scott2023-10-061-13/+2
|
* Merge pull request #81633 from matorin57/code-completion-popupRémi Verschelde2023-10-031-10/+35
|\ | | | | | | Avoid resetting the code completion popup excessively
| * Avoid resetting the code completion popup excessivelyDESKTOP-UT43QTQ\Garrigan-Desktop2023-09-201-10/+35
| |
* | Add Duplicate Lines shortcut to CodeTextEditorPucklaMotzer092023-09-251-0/+65
| | | | | | | | 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.
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-1/+1
| |
* | Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-1/+16
|/ | | | | | | | | | | | 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-25/+211
|
* Register theme properties with ThemeDBYuri Sizov2023-09-111-49/+47
|
* Fix CodeEdit completion being very slow in certain casesajreckof2023-08-101-11/+19
|
* Fix or workaround recent extension API compatibility issuesRémi Verschelde2023-08-031-0/+1
| | | | | | | - Add compatibility methods for `RenderingDevice::shader_create_from_bytecode` and `CodeEdit::get_text_for_symbol_loopup`. - Silence errors which now have compatibility methods. - Acknowledge GraphEdit/GraphNode compat breakage, intended and WIP.
* Merge pull request #73196 from Vilcrow/fix-lookup-symbolYuri Sizov2023-07-241-11/+15
|\ | | | | | | Fix jumping to function definition using `Ctrl+LMB` or the "Lookup Symbol" button
| * Fixed the jumping to function definition using 'Ctrl+LMB' and the 'Lookup ↵S.V.I. Vilcrow2023-07-121-11/+15
| | | | | | | | Symbol' button.
* | Hide breakpoint indicator when mouse leaves CodeEditMewPurPur2023-06-211-0/+4
| |
* | Merge pull request #77722 from ApplecrispEric/drag-drop-autocompleteRémi Verschelde2023-06-201-0/+4
|\ \ | | | | | | | | | Cancel autocomplete after initiating drag
| * | Changed autocomplete to cancel when the user begins a dragEric Brown2023-06-191-0/+4
| | |
* | | Fix wrong alphabetical order in autocompletion sorting.ajreckof2023-06-161-3/+1
| | | | | | | | | | | | Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | | sort code completions with rulesajreckof2023-05-231-133/+95
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+112
| |
* | Merge pull request #76145 from manueldun/usability-auto-indentRémi Verschelde2023-04-241-1/+1
|\ \ | | | | | | | | | Fix auto-indentation in typed arrays, comments, and after colon
| * | Fix auto-indentation in typed arrays, comments, and after colonManuel Dun2023-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now the editor won't add indentation when pressing enter, is declaring typed variables and there is a colon in the comment example: var a:=0#:[press enter] no indentation
* | | Merge pull request #74623 from MewPurPur/edit-text-with-styleYuri Sizov2023-04-171-7/+6
|\ \ \ | | | | | | | | Code style improvements to text_edit and related
| * | | Code style improvements to text_edit and relatedVolTer2023-04-081-7/+6
| | | |
* | | | [Web] Detect host OS and use macOS keys on mac hosts.bruvzg2023-04-111-5/+2
|/ / /
* / / Fix CI build errorJuan Linietsky2023-04-081-1/+1
|/ / | | | | | | Fixes potential use of uninitialized variable.
* | Implement theme item cache in TextEdit and CodeEditYuri Sizov2023-04-031-108/+118
| |
* | Merge pull request #73074 from M4rYu5/capslock-editor-completion-fixRémi Verschelde2023-04-031-3/+3
|\ \ | | | | | | | | | Editor: Ignore CapsLock when pressed alone
| * | Now, in editor, CapsLock behave like a modifier key: does nothing when ↵M4rYu52023-02-131-3/+3
| |/ | | | | | | | | | | pressed alone. Before, it ended up closing the code completion, and rerendering portions of editor.
* | Prevent passing events from CodeEdit to TextEdit when code completion is activeYuri Sizov2023-03-091-2/+27
| |
* | Don't autocomplete numbers in GDScriptArman Elgudzhyan2023-03-061-0/+6
| | | | | | | | Cancel code autocompletion when a numerical value is entered. Avoids interference when setting numbers.
* | Fix Indent/Unindent without a selection not causing a redrawVolTer2023-02-191-0/+2
| |
* | Fix autocomplete persisting at the beginning of a lineVolTer2023-02-151-1/+1
|/
* Fix autocomplete filter not including substringspoohcom12023-01-231-0/+2
|
* Allow unindent without selectionkobewi2023-01-181-46/+1
|
* Fixed adding extra quote when completing stringsPaulb232023-01-141-3/+5
|
* Fix crash in CodeEdit when caret column exceeds line length.Eric M2023-01-111-0/+1
|
* Use BitField<> in core type masksJuan Linietsky2023-01-081-2/+2
| | | | | | | | * All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
* fix typo 'comleption' -> 'completion'Michael Bickel2023-01-061-2/+2
|
* 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".