Andy Williams
193f17be2b
[whitespace] Fix indentation after newline when splitting.
...
Make sure that whitespace to the right is ignored
2015-10-10 14:09:02 -07:00
Andy Williams
0101b988d5
[elm_code] trim all trailing whitespace on save
...
Rather than just blank lines remove all trailing whitespace from lines
2015-08-29 12:05:56 +01:00
Andy Williams
23b3d3ffba
[elm_code] Trim empty lines on save
...
When writing out a document set line length to 0 if it
only contains whitespace
2015-08-28 00:15:55 +01:00
Andy Williams
cfa86db750
elm_code: Fix tab behaviour following API changes
...
Moved the tabwidth calculations to widget as that's where
they actually make sense
2015-06-08 23:13:03 +01:00
Andy Williams
866d22c40b
elm_code: indent lines to match whitespace above
...
We can look at more complex scope based indenting later
2015-06-07 23:11:25 +01:00
Andy Williams
3f86407481
elm_code: consistently use 0 based text index
...
This means it's more familiar as regular string work when
using the elm_code_line APIs. It's also more distinct from
the elm_code_widget layout which is still 1 based columns.
To support unicode we must convert correctly.
Now FIXED!
2015-06-03 21:29:31 +01:00
Andy Williams
74b7c2a3d3
editor: correctly paste multiline windows text
2015-05-05 21:41:29 +01:00
Andy Williams
6bd0d56e13
elm_code: add multiline paste support.
...
Creating and breaking out a few helper text methods at the same time.
Test all that we can for this reasonably complex operation
2015-04-19 15:00:10 +01:00
Andy Williams
ab0d49022c
elm_code editor: handle tabs when deleting
...
Make sure we're at the right position when we delete, backspace
or split lines with tabs in them
2015-03-30 20:07:45 +01:00
Andy Williams
2d83c07840
elm_code: Support rendering tabs
...
Add a tabstop configurable value so the view can be adjusted.
shuffle all content and tokens along when a tab is encountered.
2015-03-29 20:12:28 +01:00
Andy Williams
3ff415222b
elm_code selection: test and implement single line
...
Multi line selection still to come
2015-03-25 21:55:00 +00:00
Andy Williams
4fc9748db3
elm_code: add text search functions.
...
Update the search and replace UI to work with the new elm_ode UI.
2015-03-22 22:36:04 +00:00
Andy Williams
bd3dc4247d
elm_code unicode: highlight tokens correctly
...
When encountering unicode characters make sure we highlight
in the correct columns rather than at the byte locations.
2015-03-14 16:42:56 +00:00
Andy Williams
2f25503f8f
elm_code widget: backspace or delete merges lines
...
This is text only for now but serves as editor foundation.
2015-03-08 11:33:07 +01:00
Andy Williams
ff68af7076
elm_code line: unsigned int for length
2015-03-08 11:14:02 +01:00
Andy Williams
afeab4b53b
elm_code edit: support backspace and delete.
...
don't propogate backspace as other widgets use it to navigate
adjust tokens left when we remove content and remove if 0 width token.
2015-03-08 09:44:26 +01:00
Andy Williams
b392a21362
Add initial unicode support for elm_code
...
Note the number of utf8 characters when we load the data.
Make sure the widget is referencing unicode_length
for all our metrics.
2015-03-07 20:48:02 +01:00
Andy Williams
0e49f40ff3
elm_code: Support text insertion for simple edits.
...
Hook into the widget for elm_code_test and edi editors.
Only alphanumeric and space, but it's a start.
2015-02-22 20:07:08 +00:00