Commit Graph

239 Commits

Author SHA1 Message Date
Hermet Park 411927a002 remove duplicated variable declaration. 2016-04-09 09:48:15 +09:00
Andy Williams 1971583e5e [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 29d70a22fd [selection] split words on * and & also
Pretty important for C...
2016-04-07 17:43:31 +01:00
Andy Williams a35a1dccbe [editor] fix line geometry when scrolled 2016-04-07 16:27:20 +01:00
Andy Williams 7a9241458a [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 bec0d3085c [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 a45352346e Fix the local lookup of diffs in the test app.
This is not portable but I think it's a temporary app anyhow
2016-03-22 13:10:04 +00:00
Andy Williams 8ca0be69f0 Update to latest eo_add syntax 2016-03-18 19:43:30 +00:00
Andy Williams b3a9bd0f2c Update to latest eo syntax
Thanks for the script Tom :)
2016-03-10 00:06:50 +00:00
Andy Williams 7821032380 Fix make dist 2016-03-08 22:54:27 +00:00
Andy Williams cfdbc6b542 Update to new eo event callback signature 2016-03-01 21:20:15 +00:00
Andy Williams 0772f3e8bc [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 76af132619 [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 5b1a45cf45 [editor] add delete and backspace undo hooks 2016-02-21 23:46:10 +00:00
Andy Williams 5dc607ecea Complete the ending newline crash fix 2016-02-21 18:48:07 +00:00
Andy Williams 4a4dc31f9f Fix crash when undoing a soft tab insert 2016-02-21 18:39:43 +00:00
Andy Williams acd7b54473 [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 89cbb9daa0 easier debugging of ck_assert_strn_eq 2016-02-21 18:04:49 +00:00
Andy Williams 9c9b92cada [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 dbbcff2a3d [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 49fa89dc03 [editor] stop auto selection on symbols too 2016-02-15 23:51:51 +00:00
Andy Williams 55ecf31ccd [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 47651ec2cc Elm_Interface_Atspi_Text changed to Elm.Interface_Atspi_Text.
@author conr2d
2016-02-15 17:22:00 +00:00
Tom Hacohen 492e3e7609 Fix out of source builds. 2016-02-09 09:11:26 +00:00
Andy Williams 557fb79396 [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 843e222203 Fix maybe-uninitialized warnings 2016-01-17 17:51:13 +00:00
Andy Williams b42318aaf5 Supress libtool warning on windows
Thanks to Vincent Torri for the patch
2016-01-17 17:48:07 +00:00
Andy Williams f403f70330 [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 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 833179ab49 [editor] Show a highlight for the current cursor line 2015-10-10 12:10:47 -07:00
Andy Williams 4358717dd9 Update to efl on git 2015-09-29 00:30:31 +01:00
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 0b3c19bb21 [selection] Fix so selecting backwards works
highlight, text get and deletion working
2015-09-16 12:32:25 +01:00
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