summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add TextEdit option to prevent copying without a selectionHaoyu Qiu2024-09-141-0/+3
|
* CodeEdit: improve render speedrune-scape2024-09-041-21/+76
|
* Merge pull request #95285 from ↵Rémi Verschelde2024-08-271-1/+8
|\ | | | | | | | | | | Calinou/codeedit-completion-color-background-translucent Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
| * Draw a checkerboard behind translucent colors in CodeEdit autocompletion ↵Hugo Locurcio2024-08-091-1/+8
| | | | | | | | | | | | | | previews This makes translucent colors easier to interpret as such and is consistent with how they're displayed in ColorPicker.
* | Merge pull request #89554 from smnast/backspace-unfoldRémi Verschelde2024-08-191-1/+1
|\ \ | |/ |/| | | Fix backspace always unfolding previous line
| * Fix backspace always unfolding previous lineMrPersonDev2024-05-271-1/+1
| |
* | [macOS] Fix code completion list scrolling with trackpad.bruvzg2024-07-151-0/+32
| |
* | CodeEdit Fix move lines up/down viewport and selection issueskit2024-06-251-22/+34
| |
* | [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-1/+1
| |
* | Fix crash during code editor folding and LSPRobert Wallis2024-05-231-1/+1
|/
* 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
| |