summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* "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
| * | | Fix text selection persisting on bookmark traversalVolTer2022-11-171-30/+12
| | | |
* | | | Rename TextureButton set_*_texture methods to set_texture_*Aaron Franke2022-11-191-4/+4
| |/ / |/| |
* | | Fix "Search" match inconsistenciesChristian Cuevas2022-11-161-3/+5
|/ / | | | | | | | | - Offset by searched length not line text - Continue searching line for whole word matches on mismatch: Breaking at this point makes it so that upon any whole word mismatch all potential matches after this point inline are skipped, to avoid this unwanted behavior we continue searching the line positioned after the mismatch.
* / Disable code font ligatures by default in the editorHugo Locurcio2022-11-121-2/+2
|/
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-35/+35
|
* Fix some bugs about search in code editorRindbee2022-10-111-44/+53
| | | | | | 1. Fix #61713; 2. Fix the bug when there are consecutive matches, forward searching will skip the adjacent item; 3. Fix the bug that enable the selection-only option will affect the operations in search mode.
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-9/+9
| | | | change warnings=all to use /W4.
* Merge pull request #61902 from Paulb23/multi-caretRémi Verschelde2022-10-061-239/+429
|\ | | | | | | Add Multi-caret support to TextEdit