Commit Graph

14 Commits

Author SHA1 Message Date
Andy Williams 2297e250bc [highlight] Merge highlight tokens on line merge
Instead of blanking colours we append them as with the content.
2015-09-20 10:59:52 +01:00
Andy Williams 55d20b1cbc [highlight] Split highlight tokens on line split
Instead of blanking colours work out what to do with them.
Refactor the token carry over to simply note if there's a continuation.
2015-09-20 10:39:33 +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 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 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 bc6ec2dd6f syntax: reset status and hints when we reset token
re-use elm_code methods when we do this in edi
2015-04-12 23:04:46 +01:00
Andy Williams 7489eb6e30 syntax: don't slow down by repeating tokens
Clear out the token list before each parse callback loops
2015-04-12 17:25:20 +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 4f8ece09cf clang: save errors and display if clicked
Using a gutter click in elm_code to print to console for now
2015-03-27 23:54:28 +00: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 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
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