MattUV
a55870cd81
Adds an option to move cursor with right click in TextEdit
...
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-20 09:01:09 +01:00
Bernhard Liebl
abfcce0067
Fix cut-copy-line breaking paste (issue 14539)
2017-12-17 16:24:23 +01:00
Rémi Verschelde
d03f35f1bc
Bind TextEdit.deselect and update documentation
2017-12-16 21:08:31 +01:00
MattUV
db020f3cea
Modifies indentation behaviours
...
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-15 10:04:56 +01:00
MattUV
e669ca2576
Modify shortcuts and menus to fold/unfold code
...
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-08 19:21:48 +01:00
Paulb23
48ad133cf9
Changed current line draw order and added code folding color
2017-12-07 19:17:43 +00:00
Rémi Verschelde
8a07cb0b69
Merge pull request #14352 from ianb96/get_hidden_width
...
Fixes horizontal scrolling over hidden lines
2017-12-07 07:52:01 +01:00
Rémi Verschelde
46ac939a74
Merge pull request #13362 from groud/fix_folding
...
Fixes folding of blank lines
2017-12-07 07:20:41 +01:00
Ian
1c1a6723d0
fixes horizontal scrolling over hidden lines
2017-12-06 19:04:47 -05:00
Rémi Verschelde
7b557a4e1f
Merge pull request #13409 from YeldhamDev/textedit_disabled
...
Add disabled theme to TextEdit
2017-12-06 23:42:54 +01:00
Michael Alexsander Silva Dias
2773c12156
Add disabled theme to TextEdit.
2017-12-01 01:32:26 -02:00
Ian
d1c7ed4117
last line scroll fix when scroll_past_last_line is disabled
2017-11-28 16:52:52 -05:00
Gilles Roudiere
e13ff74c09
Fixes folding of blank lines
2017-11-28 20:03:46 +09:00
Paulb23
565809e736
Fixes adjust viewport to cursor when line is to long, issue 13190
2017-11-26 19:10:05 +00:00
Paulb23
f6f475e6ba
Fixed not be able to unfold the last line
2017-11-23 20:37:08 +00:00
ianb96
19c92c69c3
code folding scrolling fixes
2017-11-21 17:09:04 -05:00
Rémi Verschelde
fee2f367af
Merge pull request #13134 from Chaosus/fixinvalidscroll
...
Fix invalid scroll
2017-11-21 14:25:15 +01:00
Chaosus
9240b7f2d1
Fix invalid scroll
2017-11-21 12:52:46 +03:00
Bernhard Liebl
80ad8afc85
Native pan and zoom for macOS
2017-11-21 09:11:39 +01:00
Daniel J. Ramirez
e5de5b4908
Visual fixes
...
Added some icons (Including the onion one)
Fixed text editor ellipsis style and editor tabs
2017-11-20 13:03:22 -06:00
Rémi Verschelde
414b388499
Fix TextEdit::cursor_set_line bindings
...
As spotted by @neikeq - fixes #13068 .
2017-11-20 08:11:31 +01:00
Ian
1e59169d2d
scrolling fixes
2017-11-18 20:07:53 -05:00
Ian
d350f506a0
TextEdit code folding
2017-11-17 21:49:43 -05:00
Rémi Verschelde
139a957802
Merge pull request #12763 from remorse107/Code-Complete
...
Modified code completion for better tabbing with immediate hints.
2017-11-17 00:33:27 +01:00
Bojidar Marinov
443ce6fef2
Allow underscores in GDScript numeric literals
...
Closes #12928
2017-11-15 22:53:08 +02:00
Rémi Verschelde
4685674389
Merge pull request #12842 from ianb96/shader_editor_fix
...
Shader Editor context menu and line operations and style fix
2017-11-14 07:33:04 +01:00
Robert Morse
3372413037
Modified code completion for better tabbing, and removal of need to backspace and re-enter '(' to get code completion hints.
2017-11-13 18:19:11 -06:00
Michael Alexsander Silva Dias
2a26931246
Made text in TextEdit a property.
2017-11-12 13:10:26 -02:00
Michael Alexsander Silva Dias
920f3f6546
Added "is_readonly()" to TextEdit and made it a property.
2017-11-11 22:14:14 -02:00
Ian
94b3e786cd
shader editor context menu and line operations and style fix
2017-11-11 14:46:59 -05:00
Ian
fc299b4f37
add context menu enable getters, setters, and properties in LineEdit and TextEdit
2017-11-11 03:30:59 -05:00
Paulb23
6f6afde0c5
Changed line and word mouse selection
2017-11-05 15:54:00 +00:00
Paulb23
e03a054714
Remove text on enter, issue 12494
2017-10-31 20:42:53 +00:00
Unknown
7683ff3e42
Fix get_node() and $ autocompletion when using single quotes
2017-10-30 21:58:32 +01:00
Paulb23
45670df354
Added setting to toggle current line highlighting
2017-10-22 13:42:08 +01:00
Paulb23
c594c8001b
Fixed current line highlighting and visual indication of empty selected lines
2017-10-21 21:35:50 +01:00
Rémi Verschelde
0c9d201044
Merge pull request #11407 from toger5/selection_override_color
...
added option to keep font color on selection + use consistent selection color in help (fixes : #11501 )
2017-10-15 20:49:38 +02:00
Paulb23
b07dfd75ea
Consistant scroll when using members overview, issue 11648
2017-10-08 14:29:27 +01:00
Andreas Haas
5303efb2fa
Merge pull request #11659 from AndreaCatania/prephysics
...
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
toger5
8c087e046d
fixed coustom bg weired offset for code editor
2017-09-29 17:00:17 +02:00
toger5
e49ac08c24
do not overlap current line with selection color
2017-09-28 16:12:12 +02:00
toger5
d58a159e38
keep font color on selection as default
2017-09-28 14:17:14 +02:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
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.
2017-09-20 13:11:10 +02:00
Rémi Verschelde
cc161dcd6f
Merge pull request #11021 from tuga3d/autocomplete-logic-attempt2
...
autocomplete logic attempt 2, fixes #10695
2017-09-18 08:58:18 +02:00
Marcelo Fernandez
31ba932e3b
Fix crash when using key+u on a line with only a #
2017-09-17 17:07:42 -03:00
Rémi Verschelde
0953c8fd55
Merge pull request #11314 from marcelofg55/master
...
Fix possible crash with ctrl-u on script editor
2017-09-17 12:56:13 +02:00
Daniel J. Ramirez
d84c79d349
Fixed compilation with tools=no
2017-09-16 23:33:44 -05:00
Marcelo Fernandez
a2837360d0
Fix possible crash with ctrl-u on script editor
2017-09-16 04:20:20 -03:00
Daniel J. Ramirez
ba11dc3f48
Added adaptive text editor theme, this includes the shader editor
2017-09-15 16:08:22 -05:00