summaryrefslogtreecommitdiff
path: root/editor/code_editor.cpp
AgeCommit message (Collapse)Author
2020-07-06Improve null check in FindReplaceBarYuri Sizov
2020-06-23Fix error label clicking in status bar for shader editorYuri Roubinsky
2020-06-19Remove ToolButton in favor of ButtonHugo Locurcio
ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
2020-06-16Fix code editor Replace tool to work with 'Selection Only' optionMaganty Rushyendra
Ensures that when the `Selection Only` option is selected, the Replace tool replaces occurrences of the search phrase only within the selected region, and in order of occurrence.
2020-06-15Fix match count for whole word search in editorMaganty Rushyendra
Check if a match borders a new line char when incrementing match counts.
2020-06-12Fix whole word search slowdown in editorMaganty Rushyendra
Reduce repeated iteration through the full text when counting the number of occurrences of whole words while searching a file in the editor.
2020-05-22FIX CodeTextEditor not respecting focus in _inputMrRevington
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-05-10Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde
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.
2020-04-28Rename InputFilter back to InputRémi Verschelde
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.
2020-04-06Merge pull request #37447 from ThakeeNathees/text-replace-empty-string-fixRémi Verschelde
replace selected text with empty string bug fixed
2020-04-06replace selected text with empty string bug fixedThakee Nathees
Fix: #37416
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-26Working multiple window support, including editorJuan Linietsky
2020-03-26Refactored input, goes all via windows now.Juan Linietsky
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky
2020-03-01Merge pull request #18020 from bruvzg/input_fix_non_latin_and_add_hw_scancodesRémi Verschelde
Fix non-latin layout scancodes on Linux, adds access to physical scancodes.
2020-03-01Merge pull request #36621 from ↵Rémi Verschelde
WizardOhio24/fix-wrong-selection-on-line-clone-down Fix wrong selection on cloning a line down in the editor
2020-02-29Fix wrong selection on cloning a line down in the editorRichard Menzies
2020-02-28Signals: Manually port most of remaining connect_compat usesRémi Verschelde
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).
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
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.)
2020-02-27Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde
Add a soft line length guideline to the script editor
2020-02-25Rename `scancode` to `keycode`.bruvzg
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-16Allow for continuous deletion/duplication of linesTomasz Chabora
2020-02-15Add a soft line length guideline to the script editorHugo Locurcio
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.
2020-02-14Merge pull request #36030 from dreamsComeTrue/fix-replace-text-enteredRémi Verschelde
Allow using Enter key for replacing text in code editors
2020-02-11Texture refactorJuan Linietsky
-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
2020-02-08Allow using Enter key for replacing text in code editors (also Shift + Enter ↵Dominik 'squ@ll' Jasiński
works backwards) Fixes issue #31762
2020-01-31Merge pull request #33639 from YeldhamDev/replaced_label_locationRémi Verschelde
Make the replaced results appear in the matches counter
2020-01-15Fix typos with codespellRémi Verschelde
Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
2020-01-11Fixes minimap width on HiDPI monitorHaoyu Qiu
2020-01-01Update copyright statements to 2020Rémi Verschelde
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.
2019-12-22Merge pull request #34441 from KoBeWi/wrapping_things_upRémi Verschelde
Fix code editor not always centering to bookmarks
2019-12-19Fix ScriptTextEditor encapsulationYuri Roubinsky
2019-12-18Fix code editor not always centering to bookmarksTomasz Chabora
2019-12-18Updates toggle scripts switch tooltip (if user changed the shortcut)Yuri Roubinsky
2019-12-17Fix toggle scripts panel to allow using shortcut in other areasYuri Roubinsky
2019-12-17Prevent showing toggle scripts panel switch in shader editorYuri Roubinsky
2019-12-15Moves switch for show scripts panel from File menu to status barYuri Roubinsky
2019-12-09Fixes Delete Line doesn't delete first line in scriptHaoyu Qiu
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
2019-12-01Center Script Editor when jumping to bookmarks/breakpointsTomasz Chabora
2019-11-15Make the replaced results appear in the matches counterMichael Alexsander
2019-11-14Fix incorrect error label color when switching from light to dark themeYuri Roubinsky
2019-11-14Fix "matches" label color in light themeYuri Roubinsky
2019-10-14Code editor: select next occurrence after ReplacelupoDharkael
2019-10-01Fix text search bar not correctly switching from replacing to just searchingMichael Alexsander
2019-09-02Fix editor infinit loop in search_prevamakarenko
Fixes godotengine#31328