summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
AgeCommit message (Collapse)Author
2018-09-13Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde
Misc. typos
2018-09-12Misc. typosluz.paz
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12Fix default_cursor_shape for TextEditGuilherme Felipe
2018-09-12Merge pull request #21219 from AlexHolly/fix-textedit-shows-nothingRémi Verschelde
TextEdit update cache.size on ENTER_TREE
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
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.
2018-09-10Merge pull request #21872 from Paulb23/fix_backwards_searchRémi Verschelde
Fix backwards search in TextEdit selecting non-whole words, issue 15677
2018-09-10Merge pull request #21491 from AlexHolly/fix-textedit-uncomment-spammRémi Verschelde
Uncommenting a selection was not updating the selection.
2018-09-08Fix backwards search in TextEdit selecting non-whole words, issue 15677Paulb23
2018-09-08Fixed scientific notaion not highlighting correctly, issue 21435Paulb23
2018-09-08Uncommenting a selection was not updating the selection.Alexander Holland
Also adds uncomment lines(ctrl+u) where # is not in first place
2018-08-25TextEdit replaced cache.size with get_size()Alexander Holland
2018-08-24Merge pull request #20586 from AlexHolly/text-edit-auto-completionRémi Verschelde
text_edit auto_completion
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-08-14text_edit auto_completionAlexander Holland
replaced "similarity filter" with "sequential checks" this give more control over the desired filtering.
2018-08-14Merge pull request #20876 from ttencate/cursor_blinkRémi Verschelde
Reset caret blink when Ctrl+moving the cursor
2018-08-13Editor autocomplete: prefer same case candidatesJames
2018-08-13Merge pull request #20666 from Calinou/script-editor-underline-hidpiRémi Verschelde
Scale underlines in the script editor with the editor scale
2018-08-10Merge pull request #20149 from Overblob/shader_float_typingJuan Linietsky
Shader language - Add optional float typings
2018-08-10Reset caret blink when Ctrl+moving the cursorThomas ten Cate
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
2018-08-02Scale underlines in the script editor with the editor scaleHugo Locurcio
2018-07-27Merge pull request #20498 from Calinou/caret-width-hidpiRémi Verschelde
Make the caret thicker in TextEdit and scale it with the editor scale
2018-07-26Multiply TextEdit line spacing by the editor scaleHugo Locurcio
This makes sure the default line spacing in the script editor is consistent with the editor scale in use.
2018-07-26Make the caret thicker in TextEdit and scale it with the editor scaleHugo Locurcio
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%.
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
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.
2018-07-24Removed unnecessary assignmentsWilson E. Alvarez
2018-07-20Add editor highlight for type-safe linesGeorge Marques
The line number is hightlighted to indicate that the line contains only type-safe code.
2018-07-15* Small hex/float/integer parsing refactoringOverblob
* 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"
2018-07-05Merge pull request #19735 from Paulb23/text_offset_issue_15688Max Hilbrunner
Fixed text drawing too high in TextEdit, issue 15688
2018-07-05Merge pull request #19187 from Zirak/editor-autocomplete-quoteMax Hilbrunner
Editor autocomplete won't insert unnecessary quotes
2018-07-05Merge pull request #18028 from gabrii/18026Max Hilbrunner
Fix #18026. Expose TextEdit::set_draw_breakpoint_gutter.
2018-07-03Merge pull request #17438 from Deluvi/get-word-pos-quote-fixMax Hilbrunner
get_word_at_pos considers simple and double quotes
2018-06-24Fixed text drawing too high in TextEdit, issue 15688Paulb23
2018-06-14Re-enable scrolling via selecting code beyond edges in text_edit.cpprobojumper
2018-06-11IME context detection.Saracen
2018-06-09Merge pull request #18298 from gabrii/TextEditScaledSelectionMax Hilbrunner
TextEdit scaled selection
2018-05-30Improve breakpoints and breakpoint gutter API in TextEditGabriel Gavilan
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.
2018-05-26Editor autocomplete won't insert unnecessary quotesZirak
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')
2018-05-19fix for TextEdit::set_text firing signals it shouldn't.Ibrahn Sahir
Removing some _changed signals in set_ functions. Includes revert of commit 384625aa31a3627c25246e06c1fbc3019866765c
2018-05-18Merge pull request #19017 from toger5/fix_no_a_input_script_editor_osxRémi Verschelde
fixed capital A osx
2018-05-18fixed capital A osxtoger5
2018-05-16Merge pull request #18910 from PJB3005/18-05-15-fix-textedit-paramRémi Verschelde
Fix missing registration for new param of TextEdit::cursor_set_line.
2018-05-15Fix missing registration for new param of TextEdit::cursor_set_line.Pieter-Jan Briers
This caused Mono glue gen to fail and other bugs to appear (such as in Visual Script)
2018-05-15fix get_char_width for non-latin charactersianb96
2018-05-14TextEdit word wrapIan
2018-05-14Merge pull request #18853 from YeldhamDev/gui_cppcheck_fixesRémi Verschelde
Fixed some warnings found with Cppcheck
2018-05-14Fixed some warnings found with Cppcheck.Michael Alexsander Silva Dias
2018-05-11fixed a input not registered in osx script editortoger5
2018-05-09Apply viewport scale to selection update methods. Changed to propper fix ↵Gabriel Gavilan
sugested by reduz
2018-05-09Consider TextEdit paste operation complex.Charly Mourglia
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
2018-05-09get_word_at_pos considers simple and double quotesDeluvi
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