Commit Graph

148 Commits

Author SHA1 Message Date
Jean-Philippe ANDRE 828bfb4d27 elm_code: Fix log test case
An uninitialized variable was causing all the trouble.
Somehow I believe this is not the complete fix, as
grid probably shouldn't be NULL.
2016-05-16 18:05:50 +09:00
Andy Williams d5944ab474 Fix build for latest API 2016-05-14 11:20:08 +01:00
Andy Williams 006372ae26 [editor] fix issue where selections didn't refresh
Around the extremities of the ui it was possible
to not refresh correctly - fixed.
2016-04-28 22:51:03 +01:00
Andy Williams b2eb741a30 [editor] Stop jumping around on click
If there were many errors in the file the visibility
calculations got screwy
2016-04-28 22:32:43 +01:00
Andy Williams 2987e4e7d8 Update to latest eo specs 2016-04-24 22:48:58 +01:00
Hermet Park ea16ca83dc fix build break.
eo event interface has been changed.
just updated it.
2016-04-14 10:48:33 +09:00
Hermet Park 6871f68ffc remove duplicated variable declaration. 2016-04-09 09:48:15 +09:00
Andy Williams a1c47c1e9b [help] Stub out a right-click-help UI
Not looking anything up yet but we're getting started
2016-04-07 17:44:12 +01:00
Andy Williams d3ae71510c [selection] split words on * and & also
Pretty important for C...
2016-04-07 17:43:31 +01:00
Andy Williams ac2297e736 [editor] fix line geometry when scrolled 2016-04-07 16:27:20 +01:00
Andy Williams c9fb87d551 [editor] move tooltips to inline error meessages
Not perfect on refresh times but much easier to read than before
2016-03-30 16:48:48 +01:00
Andy Williams 6b079b2478 [editor] split out the grid into rendered rows.
This allows cool stuff to be inserted in between the rows
2016-03-30 03:58:39 +01:00
Andy Williams d689266254 Update to latest eo_add syntax 2016-03-18 19:43:30 +00:00
Andy Williams 8b46904ca4 Update to latest eo syntax
Thanks for the script Tom :)
2016-03-10 00:06:50 +00:00
Andy Williams 12311d2eb9 Fix make dist 2016-03-08 22:54:27 +00:00
Andy Williams 99f6a6adc2 Update to new eo event callback signature 2016-03-01 21:20:15 +00:00
Andy Williams 4aa4635da4 [editor] draw line width marker after file end
A ore uniform look if the marker goes all the way down the screen
2016-02-25 21:12:51 +00:00
Andy Williams 87f719e83b [editor] a bunch of optimisations for redraw
Avoid drawing too much in many common scenarios
2016-02-25 21:12:51 +00:00
Andy Williams b61b460c99 [editor] add delete and backspace undo hooks 2016-02-21 23:46:10 +00:00
Andy Williams 9b491f8efa Complete the ending newline crash fix 2016-02-21 18:48:07 +00:00
Andy Williams 0bcd87a2af Fix crash when undoing a soft tab insert 2016-02-21 18:39:43 +00:00
Andy Williams 7457546ded [editor] begin re-adding the undo feature.
This is provided completely by elm_code so can be reused in other editors.
For now this is just text/newline insertion...
Still have to add undo for deletion and selection
2016-02-21 18:11:33 +00:00
Andy Williams fcf2318d2b [editor] Fix crash when deleting selections
If the selection ended in the carriage return the
editor could craash.

@fix
2016-02-21 18:03:29 +00:00
Andy Williams 3c80041cdd [editor] various tidies
use flag for todo status, ignore escape key when tapped.
Fix some build warnings due to double inclusion.
2016-02-21 17:51:56 +00:00
Andy Williams d985b3a9cd [editor] stop auto selection on symbols too 2016-02-15 23:51:51 +00:00
Andy Williams 1dbc1965ff [editor] double click and triple do selections
double for a word (space or tab delimited for now)
triple selects whole line.
2016-02-15 22:54:12 +00:00
Andy Williams b38510e830 Elm_Interface_Atspi_Text changed to Elm.Interface_Atspi_Text.
@author conr2d
2016-02-15 17:22:00 +00:00
Tom Hacohen d15de4309e Fix out of source builds. 2016-02-09 09:11:26 +00:00
Andy Williams 70471e0ad8 [editor] Support space insertion instead of tabs
Elm_Code support and option in Edi to use spaces when the
Tab key is pressed - make this default too.
2016-02-09 00:32:16 +00:00
Andy Williams 0d11f3d7d8 Fix maybe-uninitialized warnings 2016-01-17 17:51:13 +00:00
Andy Williams 12047f8967 [elm_code] Update line status icons for additions
Missed a warning line and the addition of TODO as well
2016-01-16 18:21:32 +00:00
Andy Williams e6a49ec22f [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 d6b9a3f82c [editor] Show a highlight for the current cursor line 2015-10-10 12:10:47 -07:00
Andy Williams 2b56b1f395 Update to efl on git 2015-09-29 00:30:31 +01:00
Andy Williams 9056a16ec6 [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 d1e3481b32 [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 65a32dddd1 [selection] Fix so selecting backwards works
highlight, text get and deletion working
2015-09-16 12:32:25 +01:00
Andy Williams cf71473fdb [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 8fcd3c11e8 Update to latest eolian spec
Documents updated though not quite as feature-ful
2015-09-07 23:12:08 +01:00
Andy Williams 456140085e Fix make distcheck 2015-08-29 20:56:22 +01:00
Andy Williams 7455ec0f08 [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 9f96fa0c00 [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 1e5e74d947 [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 d5804b0837 [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 b1fd31d3a2 Fix some bad memory access during widget creation 2015-08-23 23:23:07 +01:00
Andy Williams 4c6fb9cc80 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 556d5790fb editor: Fix crash opening empty files 2015-06-10 23:32:15 +01:00
Andy Williams ab8f56af52 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 dd4c0fa217 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 06fa3d494b elm_code: remove selections if moving cursor
The selection remaining after cursor move was getting confusing
2015-06-07 23:13:26 +01:00