Andy Williams
7e62826b59
[editor] Fix indenting of newlines
...
Changes in memory handling of line splits broke this
in some cases (like tapping return twice).
2015-09-16 10:44:38 +01:00
Andy Williams
ce381c4eef
Update to latest eolian spec
...
Documents updated though not quite as feature-ful
2015-09-07 23:12:08 +01:00
Andy Williams
dafda92c8e
Fix make distcheck
2015-08-29 20:56:22 +01:00
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
ddfd851635
[tests] Correct checking of just length chars
...
Avoid traversing beyond string length
2015-08-29 12:06:30 +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
f0cc459a55
Fix some bad memory access during widget creation
2015-08-23 23:23:07 +01:00
Andy Williams
f80b901195
editor: allow cursor placement in blank file
...
This way we can start editing a newly created file!
2015-06-10 23:33:46 +01:00
Andy Williams
4af0936331
editor: Fix crash opening empty files
2015-06-10 23:32:15 +01:00
Andy Williams
8d17e2710f
editor: fix a strange crash in calculations
...
Seems that gutter was not always correct after eo_do
2015-06-09 22:31:57 +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
1cc89c78a2
elm_code: remove selections if moving cursor
...
The selection remaining after cursor move was getting confusing
2015-06-07 23:13:26 +01:00
Andy Williams
2604a3cdfd
texts: fix tests broken in previous refactor
2015-06-07 23:12:05 +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
e3ed8806c3
elm_code: add legacy API.
...
Refactor eo API in line with elm_obj_* elsewhere
2015-06-02 08:22:36 +01:00
Andy Williams
247f940a18
Fixing make dist
2015-06-01 23:17:10 +01:00
Andy Williams
a993e3f7b5
Fix header location
2015-06-01 00:26:24 +01:00
Andy Williams
4d466dbc74
Fix many warnings.
...
Make the font face const char * and use eina_stringshare
2015-05-31 21:18:18 +01:00
Andy Williams
01fd2997d2
performance: Fix issue where EDI would slow down
...
a bad circular problem where an error with tooltips causes more
tooltips to be spawned...
2015-05-30 22:48:35 +01:00
Andy Williams
86d5afb25d
fix crash when deleting over a line ending
2015-05-30 20:46:34 +01:00
Andy Williams
10dc1c77bd
setting: Add a font picker
...
Monospace only so we get a deccent looking result.
Mostly from the terminology project - thanks guys
2015-05-30 10:32:37 +01:00
Andy Williams
05f6cd3eac
editor: trigger saves if selection cut or pasted
2015-05-30 10:31:46 +01:00
Andy Williams
f4c48d4ca9
elm_code: support setting custom fonts
...
For EDI create the config that would allow this to be altered.
Actual setting widget to follow...
2015-05-30 10:31:46 +01:00
Andy Williams
b68312de33
Fix deletion inserting random data.
...
Off by one error (doubled). Classic.
Lesson: Run the tests you write!
2015-05-29 13:10:25 +01:00
Andy Williams
ba2b0dd93f
selection: fix crash when deleting large selection
...
snprintf is not the tool for simple string copy
- especially if not null terminated
2015-05-24 12:58:39 +01:00
Andy Williams
7cdab3d5ad
Update to latest eolian (getting stable we hope).
...
Also mark code as a construction property
2015-05-20 14:18:20 +01:00
Andy Williams
b4f7301768
Fixup tests
...
Fixing compile errors and out of date tests. oops.
2015-05-18 19:40:06 +01:00
Andy Williams
3994be1264
Update to latest .eo file type
2015-05-18 19:24:01 +01:00
Andy Williams
5cbab1fa72
editor: fix nulls being appended to lines
...
Should resolve issues with nulls being inserted
and also crashes on pasting into a selection
2015-05-18 15:49:24 +01:00
Andy Williams
6a20d2a6dc
editor: add pageup/down support
...
Page up or down by 85% of the visible window height
2015-05-12 23:15:25 +01:00
Andy Williams
94f5abd2c8
eolian_gen fixes to inheritance
2015-05-11 23:17:44 +01:00
Andy Williams
398e8ad2a0
Update elm_code widget .eo doc for EFL master
2015-05-11 23:11:28 +01:00
Andy Williams
81aa733b02
editor: wrap left and right cursor moves around
...
when there is a line to move to we should wrap cursor movements
2015-05-05 22:38:02 +01:00
Andy Williams
ae6cfba035
editor: bind home and end keys
2015-05-05 21:49:21 +01:00
Andy Williams
74b7c2a3d3
editor: correctly paste multiline windows text
2015-05-05 21:41:29 +01:00
Andy Williams
63e5ce4e8f
editor: Fix crash when pasting multi line
...
Not tracking length correctly so depending on what else is
in memory we could overrun the buffer
2015-05-05 21:40:22 +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
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
675bcb51ea
elm_code: retain line formatting on file callback
...
We don't need to reset all the lines in file load - just clear
2015-04-13 00:15:21 +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
6e34ba51e8
search: Fix issue when text is at end of line
...
Tests were wrong, fix and add more
2015-04-12 16:56:17 +01:00
Andy Williams
3dcae78dfc
elm_code: Correctly delete tabs when mid-tab
...
Delete at least 1 char and move cursor to the beginning of the tab
2015-04-07 23:09:16 +01:00
Andy Williams
4a84ad94ba
elm_code: Fix position calculations at line end
...
Addresses random NULLs in content after newline
2015-04-07 23:05:47 +01:00
Andy Williams
a2dd4b1176
elm_code: bring widget_text into widget object
2015-04-04 19:01:05 +01:00
Andy Williams
820bb1622e
elm_code: refactor widget to seperate space.
...
Keeping the private files for elm_code cleaner
2015-04-04 18:17:01 +01:00
Andy Williams
a8e45be3a1
editor: Add a tooltip popup if you hover over a line with a warning attached
2015-04-04 17:51:39 +01:00