Commit Graph

211 Commits

Author SHA1 Message Date
754e3b3f9a Merge pull request #103825 from JulianHeuser/region_highlight_crash_fix
Fix crash related to #region/#endregion caused by trailing spaces
2025-03-11 19:54:46 -05:00
659d1b5d0c Fix crash caused by trailing spaces 2025-03-11 00:06:08 -04:00
331a43a9d8 Add String::remove_char(s) methods for performance and convenience 2025-03-10 13:19:28 +01:00
466590d0ec Use get_slicec instead of get_slice for single character splitters 2025-03-08 20:36:37 +01:00
3c43508ed7 Merge pull request #102427 from AThousandShips/fix_substr
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
e0a040c0d3 Merge pull request #101319 from JulianHeuser/region_syntax_highlighting_fix
Improve consistency of code regions
2025-03-07 12:06:34 -06:00
5113022dfe Clean up some uses of String::substr
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
5f7ea8328b Merge pull request #102556 from kitbdev/fix-te-cursor-shape-held
Fix TextEdit cusor shape when mouse is held
2025-02-12 12:56:34 -06:00
kit
65b7e1c73c Fix TextEdit cusor shape when mouse is held 2025-02-08 15:32:38 -05:00
kit
6a75a89712 Fix CodeEdit line length guideline zoomed position 2025-02-08 15:30:37 -05:00
e87f4f67b0 Merge pull request #100913 from larspet/tooltip-hover-oob
Prevent tooltip from showing when hovering past the end of script line
2025-02-07 01:39:11 +01:00
ff39adddd1 Prevent tooltip from showing when hovering past end of script line 2025-01-18 00:02:06 +01:00
kit
8274e64402 Fix TextEdit breakpoint hover not hiding 2025-01-16 10:42:54 -05:00
ba3f4a4b24 Code region keywords must be followed by whitespace 2025-01-09 14:11:07 -05:00
a1846b27ea Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
80d11500b5 Code Editor: Add documentation tooltips 2024-12-15 10:51:33 +03:00
36c6ce92db Merge pull request #97660 from HolonProduction/completion-cancelation-🌈
GUI: Only cancel completion with the `ui_cancel` action
2024-12-14 18:25:13 +01:00
88e81ee730 Fix various typos and code style issues 2024-11-28 17:40:42 +01:00
cd66343c70 Merge pull request #98543 from rune-scape/code-edit-margin
CodeEdit: Fix line number margin
2024-11-12 12:13:19 -06:00
5d168a3850 CodeEdit: Fix line number margin 2024-10-25 21:59:19 -07:00
5c0f2414cd Always add decimal when printing float 2024-10-23 15:00:21 +02:00
c220e5bffd Merge pull request #97122 from adamscott/fix-trackpad-code-completion-scrolling
Fix trackpad code completion scrolling
2024-10-14 14:09:44 -05:00
93ae8d8f0d GUI: Only cancel completion with the ui_cancel action 2024-09-30 21:46:28 +02:00
2f4f39c7b3 Fix trackpad code completion scrolling 2024-09-17 12:37:45 -04:00
504e0656bb Add TextEdit option to prevent copying without a selection 2024-09-14 09:39:36 +08:00
60fa3ec4d4 CodeEdit: improve render speed 2024-09-04 20:51:09 -07:00
b4eacfe0ce Merge pull request #95285 from Calinou/codeedit-completion-color-background-translucent
Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
2024-08-27 22:27:49 +02:00
db5003519a Merge pull request #89554 from smnast/backspace-unfold
Fix backspace always unfolding previous line
2024-08-19 16:04:34 +02:00
fb88658cc8 Draw a checkerboard behind translucent colors in CodeEdit autocompletion previews
This makes translucent colors easier to interpret as such
and is consistent with how they're displayed in ColorPicker.
2024-08-09 00:03:11 +02:00
dc98e432e5 [macOS] Fix code completion list scrolling with trackpad. 2024-07-15 08:12:19 +03:00
kit
a7da814c6b CodeEdit Fix move lines up/down viewport and selection issues 2024-06-25 15:31:20 -04:00
fbb879debd [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
2860b99077 Fix backspace always unfolding previous line 2024-05-27 13:30:19 -07:00
0e97e1bc62 Fix crash during code editor folding and LSP 2024-05-23 20:01:11 -07:00
kit
773a473807 Overhaul multiple caret editing in TextEdit.
Use a multicaret edit to delay merging overlapping carets until the end.
2024-04-26 14:26:10 -04:00
kit
154f727c7a Overhaul TextEdit selection.
The caret is now a part of the selection.
2024-04-26 14:24:10 -04:00
de8b6f7a3c Add editor settings for autocompletion with NodePath and StringName 2024-03-19 17:23:54 +02:00
4ab08fb99f Fix bug related to multicursor and backspacing with brackets 2024-03-14 11:48:48 -05:00
8c36282feb Fix region section not ignoring #region and #endregion when in a string
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.
2024-03-11 00:04:39 +00:00
d70c45b5c8 Add option to add built-in strings in the POT generation 2024-02-28 11:34:26 -03:00
5ba92e5a57 Fix some DEFVALs to use the right type
- Use `StringName()` in DEFVAL for StringNames.
- Use `Variant()` in DEFVAL for Variants.
2024-02-23 01:50:18 +01:00
kit
a6af442b05 Apply TextEdit IME on most actions 2024-01-29 15:07:19 -05:00
40e7192393 Merge pull request #85191 from HolonProduction/off-by-one-code-edit
Fix updating delimiter cache of `CodeEdit` when typing on the first line
2023-12-20 15:07:44 +01:00
CHM
3744ef50e4 Make it possible to show code hint and code completion at the same time
Make code completion position more consistent

Add whitespace before if
2023-12-19 19:34:34 +01:00
d5847fa54e Fix updating delimiter cache of CodeEdit when typing on the first line 2023-12-18 14:07:46 +01:00
881fe67d94 Code Editor: Fix regression with using doc comments for code regions 2023-10-13 09:38:03 +03:00
25cbb682f5 Fix code completion override of home and end keys 2023-10-06 14:48:45 -04:00
b11309ddb6 Merge pull request #81633 from matorin57/code-completion-popup
Avoid resetting the code completion popup excessively
2023-10-03 17:20:49 +02:00
d2e651f403 Add Duplicate Lines shortcut to CodeTextEditor
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.
2023-09-25 23:41:31 +02:00
303d0994e9 Avoid resetting the code completion popup excessively 2023-09-20 15:49:25 -05:00