summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
AgeCommit message (Collapse)Author
2018-10-26Remove no longer necessary "raise_from_completion" in TextEditzhagsenkk
This is no longer needed to fix #1257 because the code-autocomplete hint stops at the script editor’s edge now. And #6690 will not arise because it is just caused by "raise_from_completion". Fixes #22504 and fixes #16064.
2018-09-12Merge pull request #21219 from AlexHolly/fix-textedit-shows-nothingRémi Verschelde
TextEdit update cache.size on ENTER_TREE
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-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-20Add editor highlight for type-safe linesGeorge Marques
The line number is hightlighted to indicate that the line contains only type-safe code.
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-15fix get_char_width for non-latin charactersianb96
2018-05-14TextEdit word wrapIan
2018-05-03Script Editor now displays positional columnUnknown
This solves #17931 and makes the script editor consistent with other text editors(Sublime, Gedit, Vim) in displaying the position rather than the raw number of characters.
2018-04-07Fixed color regions and added local color region cachePaulb23
2018-04-02Abstracted the syntax highlighter from text editPaulb23
2018-02-14Merge pull request #15618 from ianb96/fold_commentRémi Verschelde
TextEdit folding over unindented comments
2018-01-12Add special coloring to members, to make shadowing more obvious.Juan Linietsky
2018-01-12TextEdit folding over unindented commentsIan
2018-01-12Bind many more properties to scriptsBojidar Marinov
Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-03Merge pull request #15063 from poke1024/textedit-select-last-lineRémi Verschelde
Fix key down on last line in TextEdit
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-26Fix shift-key down on last line in TextEditBernhard Liebl
2017-12-20Adds an option to move cursor with right click in TextEditMattUV
Fixes #14832 - Added an option in the editor settings/cursor to make the cursor move with right click. - If the option is activated (true by default), a right click will move the cursor before displaying context menu. - If there is a selection, a right click on it will keep it selected, a right click outside it will unselect it. - The option is available in textEdit via an inspector property (or via GDScript): caret_moving_by_right_click - The option is available in the script editor and the shader editor via the editor settings - The documentation has been updated with the new property, and a few other entries in TextEdit.xml.
2017-12-17Fix cut-copy-line breaking paste (issue 14539)Bernhard Liebl
2017-12-15Modifies indentation behavioursMattUV
Partially fixes #14559 (see the issue for details); Removes some code redondancy ; Adds the possibility to indent left and right without selecting text ; Adds the entries to the context menu when text is not selected ; Renames indent_selection_left() and indent_selection_right() to indent_left() and indent_right() ; Unifies context menus of shader text editor and script text editor.
2017-12-08Modify shortcuts and menus to fold/unfold codeMattUV
Fix #13180 As the same shortcut cannot be assigned to two actions, I removed the ability to fold (fold_line()) or unfold (unfold_line()) via menu (still possible by code), and there is a single fold/unfold action (toggle_fold_line()). The new default shortcut is now Alt+F
2017-12-07Changed current line draw order and added code folding colorPaulb23
2017-12-07Merge pull request #14352 from ianb96/get_hidden_widthRémi Verschelde
Fixes horizontal scrolling over hidden lines
2017-12-07Merge pull request #13362 from groud/fix_foldingRémi Verschelde
Fixes folding of blank lines
2017-12-06fixes horizontal scrolling over hidden linesIan
2017-12-01Add disabled theme to TextEdit.Michael Alexsander Silva Dias
2017-11-28Fixes folding of blank linesGilles Roudiere
2017-11-21Native pan and zoom for macOSBernhard Liebl
2017-11-18scrolling fixesIan
2017-11-17TextEdit code foldingIan
2017-11-14Merge pull request #12842 from ianb96/shader_editor_fixRémi Verschelde
Shader Editor context menu and line operations and style fix
2017-11-11Added "is_readonly()" to TextEdit and made it a property.Michael Alexsander Silva Dias
2017-11-11shader editor context menu and line operations and style fixIan
2017-11-11add context menu enable getters, setters, and properties in LineEdit and ↵Ian
TextEdit
2017-11-05Changed line and word mouse selectionPaulb23
2017-10-22Added setting to toggle current line highlightingPaulb23
2017-09-28keep font color on selection as defaulttoger5
2017-09-06second take at autocomplete logic, using a TextOperation check.Paulo Gomes
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24-Code completion for enumerationsJuan Linietsky
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-22Stops scrolling when the user issues another commandPaulb23
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-21Increased smooth scroll speed and added user settingPaulb23
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-19Added smooth scrolling to TextEditPaulb23
2017-08-16Synchronize parameter names in definition and declarationTwistedTwigleg
Fixes #10244.
2017-08-09Implement NSTextInputClient protocol for IMEbruvzg