summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Search terms are now highlighted when the bar opens with a selection.Brian MacIntosh2023-10-301-30/+20
| | | | This is achieved by triggering a search when the bar opens. This is slightly inefficient but cleanly updates everything that's dependent on the search and reduces code duplication.
* Fix unable to uncomment code in text shader editorjsjtxietian2023-10-241-2/+2
|
* Add bulk change guards to successive theme overrides in Editor and GUIYuri Sizov2023-10-191-6/+10
|
* Fix close button in FindReplaceBarkobewi2023-10-161-1/+1
|
* Merge pull request #83382 from Lunarisnia/fix/diff-comment-delimiterRémi Verschelde2023-10-161-1/+2
|\ | | | | | | Fix multiple comment delimiter break toggle comment shortcut
| * Fix multiple comment delimiter break toggle comment shortcutLunarisnia2023-10-161-1/+2
| |
* | Fix FindReplaceBar focus problemskobewi2023-10-161-3/+12
|/
* Highlight doc comments in a different colorDanil Alexeev2023-10-081-0/+3
|
* "Whole Words" search can detect word boundaries inside the search term.Brian MacIntosh2023-10-021-2/+5
| | | | For example, searching for ".func" will now match in "a.func" even with Whole Words enabled.
* Merge pull request #81486 from ↵Rémi Verschelde2023-09-261-2/+11
|\ | | | | | | | | | | jsjtxietian/Ignoring-empty-lines--when-uncommenting Ignore empty lines when uncommenting code
| * Ignore empty lines when commenting/uncommenting codejsjtxietian2023-09-201-2/+11
| |
* | Add Duplicate Lines shortcut to CodeTextEditorPucklaMotzer092023-09-251-0/+5
|/ | | | 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.
* Merge pull request #80573 from KoBeWi/2k_lines_of_changes_created_at_2AMYuri Sizov2023-09-061-38/+39
|\ | | | | | | Add EditorStringNames singleton
| * Add EditorStringNames singletonkobewi2023-09-031-38/+39
| |
* | Add coloring for completion of vector componentsYuri Rubinsky2023-08-301-1/+3
|/
* Merge pull request #79358 from timothyqiu/indentationYuri Sizov2023-07-311-1/+1
|\ | | | | | | Make indentation indicators translatable
| * Make indentation indicators translatableHaoyu Qiu2023-07-121-1/+1
| |
* | Merge pull request #68140 from quinnyo/auto-complete-optionYuri Sizov2023-07-121-1/+3
|\ \ | | | | | | | | | Add editor setting to toggle automatic code completion
| * | Add code_complete_enabled code editor settingquinnyo2023-06-211-1/+3
| | |
* | | Merge pull request #44557 from iwek7/improved_comment_toggleYuri Sizov2023-07-121-5/+6
|\ \ \ | | | | | | | | | | | | Improve `CodeEdit`'s toggle comments behavior
| * | | Update comment toggle behavior in CodeEditiwek2023-06-011-5/+6
| | | |
* | | | Merge pull request #79079 from stmSi/ESC-key-not-closing-FindReplaceBarYuri Sizov2023-07-121-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | Fix ESC (ui_cancel) not closing FindReplaceBar
| * | | Fix: ESC (ui_cancel) not closing FindReplaceBarstmSi2023-07-061-1/+1
| | |/ | |/|
* / | Translate "No match" message in FindReplaceBarHaoyu Qiu2023-07-021-1/+1
|/ /
* | [TextEdit] Expose all auto-wrap modes.bruvzg2023-06-131-0/+1
| |
* | Merge pull request #75746 from ajreckof/order_autocompleteRémi Verschelde2023-06-081-1/+1
|\ \ | | | | | | Sort code autocompletion with rules
| * | sort code completions with rulesajreckof2023-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Enable bookmarks gutterkobewi2023-06-021-0/+1
| |/ |/|
* | Merge pull request #66763 from MewPurPur/remove-bookmark-hidingRémi Verschelde2023-05-291-1/+0
|\ \ | | | | | | | | | Remove editor setting for hiding bookmarks
| * | Remove editor setting for hiding bookmarksVolTer2022-11-021-1/+0
| | |
* | | Use defined key mapping for closing popups and dialogsArman Elgudzhyan2023-05-201-16/+4
| |/ |/| | | | | As opposed to hardcoding the escape key. Also removed such hardcoding in a few other places as well as a hardcoded enter key in one of the affected input fields.
* | Move convert_indent into CodeEditPaulb232023-05-071-105/+3
| |
* | Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-5/+1
|\ \ | | | | | | Use `String.repeat()` to optimize several String methods
| * | Use String.repeat() in more placesVolTer2023-05-011-5/+1
| | |
* | | Fix `line_spacing` in code editor will not take effect immediately on changeRindbee2023-04-241-0/+1
| | | | | | | | | | | | | | | Previously, in CodeTextEditor, `line_spacing` was forgotten to update when the editor setting property changed.
* | | Code style improvements to text_edit and relatedVolTer2023-04-081-27/+28
| | |
* | | Merge pull request #75070 from jmb462/74802Yuri Sizov2023-04-031-1/+7
|\ \ \ | | | | | | | | Fix commenting collapsed function issue
| * | | Fix commenting collapsed function issueJean-Michel Bernard2023-03-251-1/+7
| | | |
* | | | Fix off-by-one issue where Go to Line dialog shows the incorrect lineRon B. Yeh2023-03-301-8/+11
|/ / / | | | | | | | | | number (one less than the actual current line).
* | | Fix toggle comment not moving caretaXu-AP2023-02-161-2/+3
| | | | | | | | | | | | Fix regression if caret is at the beginning of the line and comment is toggled.
* | | Rework code editor multiline operationsaXu-AP2023-02-121-154/+135
| | | | | | | | | | | | | | | | | | | | | | | | Fix bugs if 2 selections were on same line. Fix bugs when selection ended at new line. Make carets stay in place after operation and on undo. Affects: delete lines, move lines, toggle comments, bookmarks and breakpoints.
* | | Remove some unused signalsRémi Verschelde2023-01-311-1/+0
| | | | | | | | | | | | Part of #37604.
* | | Fixed removing secondary carets when editing with search openPaulb232023-01-281-1/+3
|/ /
* | Implement BiDi override mode for GDScript source.bruvzg2023-01-181-0/+1
| |
* | Remove secondary carets when using FindReplaceBarPaulb232023-01-141-0/+3
| |
* | 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".
* | Cancels the code complete timer when the caret moves to another lineAlfred Reinold Baudisch2022-12-061-0/+5
| | | | | | | | Fixes and closes #68961
* | Merge pull request #69132 from RumblingTurtle/multiline-move-fixRémi Verschelde2022-12-051-126/+137
|\ \ | | | | | | | | | Script editor: Rewrite multiline move logic
| * | Script editor: Rewrite multiline move logic. Preserving all carets and their ↵Eduard Zalyaev2022-12-051-126/+137
| | | | | | | | | | | | | | | | | | selections intact on alt+up/down shortcut Fixes #68731.
* | | Merge pull request #68759 from MewPurPur/bookmark-fixRémi Verschelde2022-11-281-30/+12
|\ \ \ | | | | | | | | | | | | Fix text selection persisting on bookmark traversal