Age | Commit message (Collapse) | Author |
|
Misc. typos
|
|
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
|
|
|
|
TextEdit update cache.size on ENTER_TREE
|
|
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
|
|
Fix backwards search in TextEdit selecting non-whole words, issue 15677
|
|
Uncommenting a selection was not updating the selection.
|
|
|
|
|
|
Also adds uncomment lines(ctrl+u) where # is not in first place
|
|
|
|
text_edit auto_completion
|
|
|
|
replaced "similarity filter" with "sequential checks" this give more control over the desired filtering.
|
|
Reset caret blink when Ctrl+moving the cursor
|
|
|
|
Scale underlines in the script editor with the editor scale
|
|
Shader language - Add optional float typings
|
|
There was a hardcoded exception to never reset caret blinking if Ctrl
(`command`) was pressed. This broke on Ctrl+arrows,
Ctrl+Home/End/PgUp/PgDn, Ctrl+C, Ctrl+V, Ctrl+Backspace and Ctrl+Delete.
Resetting blink only for those Ctrl operations that actually touch the
cursor somehow would clutter the code a lot, so I removed the check
entirely. That means we now also reset blinking on unrelated operations
like Ctrl+O, but that seems pretty harmless. I actually like the
additional bit of feedback even in that case (most of these will
immediately defocus the editor anyway, so you never see it).
Fixes #18100
|
|
|
|
Make the caret thicker in TextEdit and scale it with the editor scale
|
|
This makes sure the default line spacing in the script editor
is consistent with the editor scale in use.
|
|
The caret in LineEdit is still 1 pixel thick, but it will become
2 pixels thick at editor scales higher than or equal to 150%.
|
|
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
|
|
|
|
The line number is hightlighted to indicate that the line contains only
type-safe code.
|
|
* Potential bug fix on hex (cannot be used atm)
* Added optional typing for floats, eg:
"1f" -> "1.0"
"1.f" -> "1.0"
"1.99f" -> "1.99"
"1." -> "1.0"
|
|
Fixed text drawing too high in TextEdit, issue 15688
|
|
Editor autocomplete won't insert unnecessary quotes
|
|
Fix #18026. Expose TextEdit::set_draw_breakpoint_gutter.
|
|
get_word_at_pos considers simple and double quotes
|
|
|
|
|
|
|
|
TextEdit scaled selection
|
|
Added breakpoint_gutter, is_breakpoint_gutter_enabled, set_breakpoint_gutter_enabled, get_breakpoints, remove_breakpoints.
Fixed breakpoint_toggled signal not fierd when text is edited.
Fixes #18026.
|
|
When autocompleting a string (e.g. emit_signal or connect), e.g.
emit_signal('visibility_c')
^
where "^" is the cursor, hitting <tab> would insert an unnecessary
quote, breaking the string:
emit_signal('visibility_changed'')
This commit adds a small lookahead, so the end result will be as the
user probably expected:
emit_signal('visibility_changed')
|
|
Removing some _changed signals in set_ functions.
Includes revert of commit 384625aa31a3627c25246e06c1fbc3019866765c
|
|
fixed capital A osx
|
|
|
|
Fix missing registration for new param of TextEdit::cursor_set_line.
|
|
This caused Mono glue gen to fail and other bugs to appear
(such as in Visual Script)
|
|
|
|
|
|
Fixed some warnings found with Cppcheck
|
|
|
|
|
|
sugested by reduz
|
|
Not considering a paste operation as a complex one ends up
adding an unneeded extra step when pasting over a selection.
This fixes issue #18325
|
|
When using the get_word_at_pos function in TextEdit, the function would
return a full string only if this string is surrounded by double quotes
and not by simple quotes.
With this fix, get_word_at_pos will return the full string, whether be a
string surrounded by simple or double quotes.
Fixes #17437
|