Commit Graph

36 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 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 4d466dbc74 Fix many warnings.
Make the font face const char * and use eina_stringshare
2015-05-31 21:18:18 +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 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 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 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 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 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 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