Commit Graph

77 Commits

Author SHA1 Message Date
Yaya-Cout
806b11b589 [apps/code] Add a setting for syntax highlighting (#85) 2021-11-27 12:34:09 +01:00
Faustin
9cda9d9e59 [apps/code] Add a settings for autocomplete (#36) 2021-10-07 21:48:19 +02:00
Joachim LF
9b17d1b882 [Update] Epsilon 15.3.1 2021-01-21 19:56:06 +01:00
Hugo Saint-Vignes
d937bc692b [apps/code] Fix crashes on full buffer
Change-Id: If9297f1ca29015cad0cc1cdda3ad610fd1493392
2020-11-04 15:11:45 +01:00
Joachim LF
d7ac7e19bb [Update] Epsilon 14 2020-07-13 10:36:47 +02:00
Léa Saviot
1f0b3770e3 [apps/code] Fix syntaxic coloration
Scenario: +, -, / operators where no longer properly colored during
script edition.
This was due to the MicroPython update, which changed the lexer tokens
order.
2020-06-15 13:26:32 +02:00
Léa Saviot
6dfccc6edf Revert "[apps/code] EXE event accepts autocompletion"
This reverts commit 5a96fd0e5de4a9bda30900e0c81a0b15f3fe081a.
2020-06-04 14:50:07 +02:00
Léa Saviot
0b88bb0767 [apps/code] Reset m_autocompletionResultIndex when addingAutocompletion 2020-06-04 14:50:07 +02:00
Léa Saviot
780c593c26 [apps/code] Autocompletion for "abs" proposes parentheses 2020-06-04 14:50:06 +02:00
Léa Saviot
b070eaad45 [apps/code] Remove double call to addAutocompletion 2020-06-04 14:50:06 +02:00
Léa Saviot
c915eb0b27 [apps/code] Do not autocomplete with arguments
Eg : arr|ow(x,y,dx,dy) should give arrow(|,,,)
2020-06-04 14:50:06 +02:00
Léa Saviot
e4aac3f9c6 [apps/code] Remove more TODOs 2020-06-04 14:50:06 +02:00
Léa Saviot
c81420c4b2 [apps/code] EXE event accepts autocompletion 2020-06-04 14:50:06 +02:00
Léa Saviot
f49bf76b19 [apps/code] More complete comment 2020-06-04 14:50:06 +02:00
Léa Saviot
3fe6af281f [apps/code] Fix variable box that crashed 2020-06-04 14:50:05 +02:00
Léa Saviot
a7773576f8 [apps/code] Fix PythonTextArea::autocompletionType 2020-06-04 14:50:05 +02:00
Léa Saviot
2a823419ff [apps/code] Cycle through possible autocompletions with up/down 2020-06-04 14:50:05 +02:00
Léa Saviot
e7bfb3b5f3 [apps/code] Use variable 2020-06-04 14:50:05 +02:00
Léa Saviot
94e9a10f16 [apps/code] Autocomplete only with parentheses if needed
For instance, type "abs", there is "()" autocompletion
2020-06-04 14:50:05 +02:00
Léa Saviot
5d2910188d [apps/code] Add the parentheses in the autocompletion 2020-06-04 14:50:05 +02:00
Léa Saviot
2ed0c85ebf [apps/code] Autocompletion end is end of token, not next ' ' 2020-06-04 14:50:05 +02:00
Léa Saviot
da2730dd64 [apps/code] Autocomplete at the end of tokens
Not at the end of "words" separated by spaces.
2020-06-04 14:50:05 +02:00
Léa Saviot
9bf361d5a5 [apps/code] Autocomplete only after edition
Reverts 39c3d66cd
2020-06-04 14:50:05 +02:00
Léa Saviot
4502ae4fbd [apps/code] Change autocomplete color 2020-06-04 14:50:05 +02:00
Léa Saviot
e73ae9bcdf [apps/code] Fix varbox that should autocomplete the current word 2020-06-04 14:50:05 +02:00
Léa Saviot
0f2ac5b110 [escher/text_field] Fix std::min use 2020-06-04 14:50:05 +02:00
Léa Saviot
003317647e [apps/code] Display empty message in var box 2020-06-04 14:50:05 +02:00
Léa Saviot
f371126708 [apps/code] Fix assertion 2020-06-04 14:50:05 +02:00
Léa Saviot
b41d1e393e [apps/code] Autocomplete when cursor at the end of the word
Not just after adding or deleting text
2020-06-04 14:50:05 +02:00
Léa Saviot
af3394d35a [apps/code] Better event handling for autocompletion 2020-06-04 14:50:04 +02:00
Léa Saviot
5a37b1df53 [apps/code] Use Default color at beginning of autocompleted token 2020-06-04 14:50:04 +02:00
Léa Saviot
14f914e3d6 [apps/code] Remove unused functions and argument 2020-06-04 14:50:04 +02:00
Léa Saviot
f412d95584 [apps/code] Load builtins according to autocompleted text 2020-06-04 14:50:04 +02:00
Léa Saviot
eeb42f2544 [apps/code] autocompletionText uses the right text length
Before, there was no notion that the autocompleted text might not be a
null terminated string.
2020-06-04 14:50:03 +02:00
Léa Saviot
b9693f1f26 [apps/code] Load variable box with script index argument 2020-06-04 14:50:03 +02:00
Léa Saviot
f883516716 [apps/code] Editor asks VariableBox for autocompletion 2020-06-04 14:50:03 +02:00
Léa Saviot
1e2492c5f4 [apps/code] Autocomplete only at the end of the word
For instance, if the cursor is: "he|llo" and the user adds the letter
'i', there is no autocompletion provided as the cursor is still in the
middle of a word.
2020-06-04 14:50:03 +02:00
Léa Saviot
77e34f0446 [apps/code] Reload the view for autocompletion changes 2020-06-04 14:50:03 +02:00
Léa Saviot
f82079a40a [apps/code] Autocomplete only if char before cursor is not ' ' or '\n' 2020-06-04 14:50:03 +02:00
Léa Saviot
a2cc923a02 [apps/code] Fix assertion 2020-06-04 14:50:03 +02:00
Léa Saviot
5dd4f12ee3 [apps/code] Handle acception/dismissal of autocompletion 2020-06-04 14:50:03 +02:00
Léa Saviot
938e0dd840 [apps/code] Autocompletion steps 2020-06-04 14:50:03 +02:00
Léa Saviot
343d2328b8 [ion/utf8_helper] EndOfWord helper 2020-06-04 14:50:03 +02:00
Léa Saviot
32fbea9d06 [apps/code] Handle autocomplete coloring 2020-06-04 14:50:03 +02:00
Léa Saviot
9b8b0bc98f [apps/code] PythonTextArea should always be the PythonUser when coloring 2020-06-04 14:50:03 +02:00
Quentin
f37040dc8a [Fix] Conflicts 2020-04-16 14:04:56 +02:00
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01:00
Léa Saviot
e98b67634d [escher/text_area] Improve dirty tracking 2020-02-12 15:13:17 +01:00
Léa Saviot
a2c7e57a77 [apps/python_text_area] Color the white spaces 2020-02-12 15:13:17 +01:00