aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/script_text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix shortcuts using KEY_MASK_CTRL instead of KEY_MASK_CMDRémi Verschelde2018-06-111-9/+21
| | | | | | | | | | | KEY_MASK_CMD is automatically replaced by KEY_MASK_CTRL on non-OSX and KEY_MASK_META (Command key) on OSX, so it should be used for all Ctrl/Cmd + key shortcuts. Also de-hacked the macOS shortcut replacements with proper conditional definition. Not tested on macOS, cannot judge if they are good shortcuts. Fixes #10761.
* Merge pull request #18642 from flashyincceo/engine-clickJuan Linietsky2018-05-071-0/+2
|\ | | | | Fix script editor CTRL+CLICK on singleton functions
| * Fix script editor CTRL+CLICK on singleton functionsPeter Folkins2018-05-051-0/+2
| |
* | Merge pull request #18308 from ericmccarthy7/developMax Hilbrunner2018-05-071-0/+4
|\ \ | |/ |/| Fix clone down newline bug
| * Fix clone down newline bugEric McCarthy2018-04-191-0/+4
| | | | | | | | | | | | | | | | | | | | Previously cloning down at the end of a script was broken if there was not an additional empty line. This fix ensures there is an empty line before attempting to clone downwards. Fixes #18206, cheers!
* | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-4/+4
|/
* Merge pull request #16571 from Zylann/find_in_filesJuan Linietsky2018-04-081-1/+22
|\ | | | | Added find & replace in files
| * Added find & replace in filesMarc Gilleron2018-02-191-1/+22
| |
* | Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighterRémi Verschelde2018-04-041-2/+24
|\ \ | | | | | | Abstracted the syntax highlighter from text edit.
| * | Abstracted the syntax highlighter from text editPaulb232018-04-021-2/+24
| | |
* | | Ctrl+Clicking a enum now scrolls down to it in the docs.Felix Yang2018-04-031-0/+20
|/ /
* | ScriptTextEditor: fix capitalize offsetPoommetee Ketson2018-03-121-3/+8
| |
* | Delete all selected lines using the delete line shortcut in script editorYan Pas2018-02-171-6/+20
| |
* | Merge pull request #16374 from ianb96/drop_at_mouseRémi Verschelde2018-02-131-9/+16
|\ \ | | | | | | Drop path text at mouse pos
| * | drop path text at mouse posianb962018-02-031-9/+16
| |/
* / Fix #16479 (deselect text when jumping to function)Artem Varaksa2018-02-081-0/+1
|/
* Fix shortcut conflictRazah2018-01-251-6/+3
| | | | | fix https://github.com/godotengine/godot/issues/16054 The clone_down shortcut that conflicts with the "editor / play" shortcut has been replaced by "SHIFT + COMMAND + C" instead of "COMMAND + B" on macOS
* Fixed member keywords colour not updating on settings changePaulb232018-01-141-0/+1
|
* Add special coloring to members, to make shadowing more obvious.Juan Linietsky2018-01-121-0/+33
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Respect text editor highlighting color changesvolzhs2017-12-281-66/+30
| | | | Fix #14838
* Adds an option to move cursor with right click in TextEditMattUV2017-12-201-28/+50
| | | | | | | | | | 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.
* Merge pull request #14613 from voithos/fold-jump-bugfixRémi Verschelde2017-12-161-4/+0
|\ | | | | Account for folded code blocks when navigating via members list
| * Account for folded code blocks when navigating via members listZaven Muradyan2017-12-121-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the editor would attempt to set the scroll position to the function's line number, but this would result in an invalid scroll whenever functions above the target were folded. This changes callback to use a combination of `goto_line` and `set_edit_state` to navigate to the target line and reset the cursor to column 0. Using `goto_line` also has the side effect of automatically unfolding the target function, which seems like useful behavior. Fixes #14572.
* | Modifies indentation behavioursMattUV2017-12-151-35/+6
|/ | | | | | | | | 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.
* Modify shortcuts and menus to fold/unfold codeMattUV2017-12-081-18/+7
| | | | | | | 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
* Changed current line draw order and added code folding colorPaulb232017-12-071-2/+4
|
* Add uppercase and lowercase to rightclickmenu in scripteditorsersoong2017-12-071-0/+2
|
* Script Editor: Use first non-whitespace comment delimiter.Andreas Haas2017-12-041-2/+7
| | | | As suggested by @neikeq in https://github.com/godotengine/godot/pull/13489#issuecomment-348690816
* Script Editor: Make comment delimiter language dependent.Andreas Haas2017-12-011-7/+14
|
* scrolling fixesIan2017-11-181-74/+86
|
* TextEdit code foldingIan2017-11-171-11/+48
|
* Rename Rect3 to AABB.Ferenc Arn2017-11-171-1/+1
| | | | Fixes #12973.
* shader editor context menu and line operations and style fixIan2017-11-111-4/+8
|
* Consistant scroll when using members overview, issue 11648Paulb232017-10-081-1/+1
|
* Added correct initialization for script editor theme.Daniel J. Ramirez2017-10-021-8/+32
| | | | Some style fixes for VS interface.
* fix not beeing able to open empty scriptsScayze2017-09-281-5/+1
|
* Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere2017-09-221-1/+1
| | | | set_anchors_and_margins_preset(PRESET_WIDE)
* Rename pos to position in user facing methods and variablesletheed2017-09-201-4/+4
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Added adaptive text editor theme, this includes the shader editorDaniel J. Ramirez2017-09-151-35/+91
|
* Merge pull request #10826 from tuga3d/toggle-comment-behaviorRémi Verschelde2017-09-131-4/+17
|\ | | | | Smarter toggle comment block. fixes #10720
| * Smarter toggle comment block. issue #10720Paulo Gomes2017-09-051-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | Added check to see if all lines in selection are commented (is_commented) If so remove the comment from each line else add a comment. If the line is empty, with trailing spaces or tabs, remove those. This will add an extra comment character to the lines that are already commented, so when you uncomment a block it retains the previous commented lines. Following Zylann logic, if the selected lines are all commented out, it removes one # from each. Otherwise, it adds one. It works how it is, but i would like some feedback on how to implement this.
* | Fix unused variable warningsHein-Pieter van Braam2017-09-081-1/+1
| | | | | | | | The forth in my quest to make Godot 3.x compile with -Werror on GCC7
* | Merge pull request #10901 from toger5/script_background_cleanupRémi Verschelde2017-09-041-7/+2
|\ \ | |/ |/| StyleBoxSupport for RichTextLabel and cleanup for script+docs backgrounds fixes #10685
| * Revert "added setting to override the theme background with editor theme color"toger52017-09-021-7/+2
| | | | | | | | This reverts commit ce4eb307789eb86261afecc1400de5e5b0832400.
* | Updated Editor Built-In types.Daniel J. Ramirez2017-08-311-5/+17
|/
* Renamed 'script_changed' signal in the script editor plugin to ↵Wilson E. Alvarez2017-08-291-1/+1
| | | | 'edited_script_changed'
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Editor: Add some more translatable strings.Andreas Haas2017-08-251-1/+1
|