summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-37/+73
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-63/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-2/+4
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Rename InputFilter back to InputRémi Verschelde2020-04-281-3/+3
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Merge pull request #37447 from ThakeeNathees/text-replace-empty-string-fixRémi Verschelde2020-04-061-1/+9
|\ | | | | replace selected text with empty string bug fixed
| * replace selected text with empty string bug fixedThakee Nathees2020-04-061-1/+9
| | | | | | | | Fix: #37416
* | Replace NULL with nullptrlupoDharkael2020-04-021-2/+2
|/
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-42/+42
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-4/+4
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-3/+3
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-1/+1
|
* Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde2020-03-011-1/+1
|\ | | | | Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
| * Rename `scancode` to `keycode`.bruvzg2020-02-251-1/+1
| | | | | | | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* | Merge pull request #36621 from ↵Rémi Verschelde2020-03-011-1/+1
|\ \ | | | | | | | | | | | | WizardOhio24/fix-wrong-selection-on-line-clone-down Fix wrong selection on cloning a line down in the editor
| * | Fix wrong selection on cloning a line down in the editorRichard Menzies2020-02-291-1/+1
| | |
* | | Signals: Manually port most of remaining connect_compat usesRémi Verschelde2020-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
* | | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-47/+25
|/ / | | | | | | | | | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* | Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde2020-02-271-2/+3
|\ \ | |/ |/| Add a soft line length guideline to the script editor
| * Add a soft line length guideline to the script editorHugo Locurcio2020-02-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | The default value is 80. The hard line length guideline's default column has been moved to 100 to account for the new soft line length guideline. It can be disabled by setting its value to the same column as the hard line length guideline. This closes https://github.com/godotengine/godot-proposals/issues/347.
* | Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-27/+27
| | | | | | | | objects and made them default.
* | Allow for continuous deletion/duplication of linesTomasz Chabora2020-02-161-0/+10
|/
* Merge pull request #36030 from dreamsComeTrue/fix-replace-text-enteredRémi Verschelde2020-02-141-0/+5
|\ | | | | Allow using Enter key for replacing text in code editors
| * Allow using Enter key for replacing text in code editors (also Shift + Enter ↵Dominik 'squ@ll' Jasiński2020-02-081-0/+5
| | | | | | | | | | | | works backwards) Fixes issue #31762
* | Texture refactorJuan Linietsky2020-02-111-2/+2
|/ | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Merge pull request #33639 from YeldhamDev/replaced_label_locationRémi Verschelde2020-01-311-1/+2
|\ | | | | Make the replaced results appear in the matches counter
| * Make the replaced results appear in the matches counterMichael Alexsander2019-11-151-1/+2
| |
* | Fix typos with codespellRémi Verschelde2020-01-151-1/+1
| | | | | | | | | | | | Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
* | Fixes minimap width on HiDPI monitorHaoyu Qiu2020-01-111-1/+1
| |
* | Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* | Merge pull request #34441 from KoBeWi/wrapping_things_upRémi Verschelde2019-12-221-0/+2
|\ \ | | | | | | Fix code editor not always centering to bookmarks
| * | Fix code editor not always centering to bookmarksTomasz Chabora2019-12-181-0/+2
| | |
* | | Fix ScriptTextEditor encapsulationYuri Roubinsky2019-12-191-1/+1
|/ /
* | Updates toggle scripts switch tooltip (if user changed the shortcut)Yuri Roubinsky2019-12-181-1/+1
| |
* | Fix toggle scripts panel to allow using shortcut in other areasYuri Roubinsky2019-12-171-3/+10
| |
* | Prevent showing toggle scripts panel switch in shader editorYuri Roubinsky2019-12-171-1/+8
| |
* | Moves switch for show scripts panel from File menu to status barYuri Roubinsky2019-12-151-0/+11
| |
* | Fixes Delete Line doesn't delete first line in scriptHaoyu Qiu2019-12-091-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, match multi-line delete behavior in script with single line: If there are four lines: A, B, C, D. Before the change: Delete C: Cursor lands on D Delete B and C: Cursor lands on A After the change: Delete C: Cursor lands on D Delete B and C: Cursor lands on D
* | Center Script Editor when jumping to bookmarks/breakpointsTomasz Chabora2019-12-011-0/+2
|/
* Fix incorrect error label color when switching from light to dark themeYuri Roubinsky2019-11-141-2/+5
|
* Fix "matches" label color in light themeYuri Roubinsky2019-11-141-1/+1
|
* Code editor: select next occurrence after ReplacelupoDharkael2019-10-141-1/+3
|
* Fix text search bar not correctly switching from replacing to just searchingMichael Alexsander2019-10-011-2/+2
|
* Fix editor infinit loop in search_prevamakarenko2019-09-021-8/+6
| | | | Fixes godotengine#31328
* Reorganize & rename text editor settings categoriesCykyrios2019-09-011-20/+20
| | | | | | | | Add Navigation category for scroll and minimap settings. Rename Line Numbers category to Appearance. Rename Open Scripts category to Script List. Rename "Draw Minimap" setting to "Show Minimap" (this is more consistent with other settings). Reorder settings by category in code_editor.cpp to match settings list
* Add minimap to text_editPaulb232019-08-211-0/+2
|
* Fix matches result in the code search not appearing when the quantity is 0Michael Alexsander Silva Dias2019-08-141-11/+12
|
* Merge pull request #31329 from KoBeWi/vscode_ftwRémi Verschelde2019-08-141-24/+35
|\ | | | | Tweak the behavior of search/replace bar
| * Tweak the behavior of search/replace barTomasz Chabora2019-08-131-24/+35
| |
* | Merge pull request #31355 from nekomatata/fix-select-prev-freezeRémi Verschelde2019-08-131-6/+8
|\ \ | |/ |/| Fixed freeze on search previous
| * Fixed freeze on search_prev (missing condition for searching from a previous ↵PouleyKetchoupp2019-08-131-6/+8
| | | | | | | | | | | | result, now the same as search_next) Fixes #31328