Andy Williams
2f0347b108
[editor] Make whitespace trimming an option
...
Add a global setting to turn off the behaviour
2015-08-29 14:46:18 +01:00
Andy Williams
3999fb67fd
[elm_code] don't strip whitespace on current line
...
When saving if any widget has a cursor on the line
we shouldn't strip the trailing whitespace
2015-08-29 14:11:40 +01: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
a0d6627f54
elm_code: add a TODO/FIXME standard parser
...
Corret some callback code and re-parse each time the file is saved.
Use this to clean up save/parse code in EDI too
2015-04-20 01:21:03 +01:00
Andy Williams
008246d936
editor: Fix performance of adding deleting lines
...
removed the numerous callbacks that were not needed
2015-04-02 00:32:16 +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
bf53022adb
Note that a fix is now temporary
2015-03-27 23:45:23 +00:00
Andy Williams
f7f257fca4
elm_code file: add save method to write out lines
...
use a temporary file as we may have mapped the data directly.
2015-03-21 19:25:25 +00:00
Andy Williams
a671101a09
elm_code file: get line ending chars
...
Quickly add support for the line end character sequence.
Just windows and Unix now, as per the enum defined.
2015-03-21 13:58:30 +00:00
Andy Williams
6d55e32c0c
elm_code file: detect line endings
...
Check for Windows otherwise default to unix for now.
2015-03-15 23:07:31 +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
ecb35beb30
elm_code line: move freeing to the line file
2015-03-08 11:15:31 +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
91b426d93e
elm_code: support line insertion
...
in our widget call a line insertion on enter pressed
2015-02-28 14:20:32 +00:00
Andy Williams
079a65a98b
merge changes from master
2015-02-26 13:56:50 +00:00
Andy Williams
b2a18b6db7
elm_code: Move parser callbacks to private.
...
Don't expose the internal callback mechanics, just the addition of parsers
2015-02-26 13:54:46 +00:00
Andy Williams
c98ba7d1e8
syntax: Actually use the elm_code parser api.
...
Improve the API to allow passing of user data to the calls.
Yes, I forgot about this, it works well so remove the STYLE_SET callback
2015-02-24 00:32:40 +00:00
Andy Williams
bbe671626e
elm_code: Support multi-line tokens
...
Adding a new token to each line it covers.
Each token references the end line so newline behaviour can be set
2015-02-21 18:24:17 +00:00
Andy Williams
ac35cc30d9
elm_code: Tidying our callbacks and line manipulation.
...
Now the line_done callback allows styling to be set during the load process.
2015-02-14 23:14:06 +00:00
Andy Williams
f6f19be6cb
elm_code: focus: block focus leaving text area when editable.
...
As well as setting when we should not have focus leave us a theme has been added.
This allows us to extend from elm_entry which is better suited to us.
2015-02-14 18:49:51 +00:00