summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* Fix autocomplete with autobrace completion not adding closing pairPaulb232022-12-191-9/+11
|
* Fix autocomplete box placementHayden Leete2022-12-171-1/+3
|
* Merge pull request #62675 from Jummit/tolerant_lookupRémi Verschelde2022-12-031-2/+3
|\ | | | | | | Allow drag-clicking before symbol lookup
| * Allow drag-clicking before symbol lookupJummit2022-10-091-2/+3
| | | | | | | | | | This makes it easier for touch and tablet users to do symbol lookups in the code editor.
* | Add `Control::localize_numeral_system` property to toggle automatic numeral ↵bruvzg2022-11-171-1/+4
| | | | | | | | system conversion.
* | Pass caret index when deleting selection with backspaceAlfred Reinold Baudisch2022-11-051-2/+2
| | | | | | | | Fixes and closes #67992
* | Merge pull request #67994 from YeldhamDev/how_suggestiveRémi Verschelde2022-11-021-1/+18
|\ \ | | | | | | | | | Stop centering clicked suggestions in the autocomplete popup
| * | Stop centering clicked suggestions in the autocomplete popupMichael Alexsander2022-10-281-1/+18
| | |
* | | Fix crash in code completion when using an invalid / null fontPaulb232022-10-161-4/+12
|/ /
* / Improved breakpoints hover indicatorVolTer2022-10-101-14/+18
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-8/+8
| | | | change warnings=all to use /W4.
* Add multi caret support to CodeEditPaulb232022-10-051-349/+396
|
* Add mutliple Caret support to TextEditPaulb232022-10-051-2/+2
|
* Merge pull request #65540 from MewPurPur/easier-bookmarksRémi Verschelde2022-09-261-11/+24
|\ | | | | | | Implement Shift+LMB as a Way to Toggle Bookmarks
| * Shift+LMB to Toggle BookmarksVolTer2022-09-081-11/+24
| |
* | Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-3/+3
|/ | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).