Commit Graph

35 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 6aea530622 Text settings: Add analysis typed text for redoundo feature.
Added cases:
    Analyse auto indention for new lines. It mean, that redo/undo
            line creation will finished by one step.
    Analyse input symbols speed. In case when user writes somethenigi
            and takes a short delay (by default 0.8sec)
            between written symbols - redo/undo action will use this delay
            as point to create new node in redo/undo queue.
    Analyse input symbols on a "words". Ongoing alphabetic symbols
            between nonalphabetic symbols known as
            "word". Redo/undo action will use for a step a whole "word".

In text setting added addition toggle named "Smart undo/redo".
By default this feature is disabled.

Todo: make this feature work with auto intendation.

Prortotype here: https://phab.enlightenment.org/D1288
2015-12-10 10:53:12 +09:00
Mykyta Biliavskyi 1fd611f4b6 Edc_editor: enhance enventor_object_text insert API.
Summary:
added edit_text_insert function, that
shared for public use as enventor_object_text_insert
This API provide functionality for text insert with
support correct text replacement and redo/undo
feature support.

@fix T2691

Test Plan:
Lunch Enventor. Open "Find/Replace" dialog.
Fill "Find" field with exist string and fill
"Replace with" field with any text. Press "Replace All".
Close dialog window and check how work Ctrl+Z and Ctrl+R
hotkey combinations.

Reviewers: Hermet

Maniphest Tasks: T2691

Differential Revision: https://phab.enlightenment.org/D3005
2015-09-04 15:42:43 +09:00
ChunEon Park 072bba3dc1 fix win32 porting.
specify missing dll import/export declarations for EAPIs.
2015-08-20 11:04:56 +09:00
Mykyta Biliavskyi 9c66f6fcf0 Build: marks line, that contain error in edc_editor.
Summary:
parse error messages from edje_cc, and marked
by underline the mistaken line.  In cases for messages
that does not contain line numbers, trying to parse
name of wrong parameter. Trying to searching the parsed name
in edc code, and highlight the first entity.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2791
2015-08-11 13:18:07 +09:00
ChunEon Park 92c09a0a39 ctxpopup: support dramatic updation for live view.
a little slow, but it's better than before.

added smart callback, @live_view,updated
renamed smart callback, @ctxpopup,selected -> @ctxpopup,changed
2015-07-01 01:25:04 +09:00
ChunEon Park 11513e0568 remove unused functions. 2015-06-30 15:26:07 +09:00
Mykyta Biliavskyi c2d6bae122 Autoindent: fix increase line numbers.
Summary:
Function indent_insert_apply reutn count of inserted lines.
It is provide increse line numbers correctly.

@fix T2510

Reviewers: Hermet

Maniphest Tasks: T2510

Differential Revision: https://phab.enlightenment.org/D2745
2015-06-24 13:14:14 +09:00
ChunEon Park 6e7e18b12b auto_comp: close popup if the line is deleted.
@fix.
2015-06-23 10:21:22 +09:00
Mykyta Biliavskyi 5b3aa7ca3b Autocomplete: show list of the candidates by Ctrl+space.
Summary:
By press ctrl_l+space will be shown popup with the candidates list,
that relevant to current cursor position.
Added API enventor_object_auto_complete_list_show as public.

Reviewers: Hermet, jpeg

Maniphest Tasks: T2496

Differential Revision: https://phab.enlightenment.org/D2720
2015-06-22 14:34:52 +09:00
ChunEon Park 97941ff378 Indent: auto indentation when code is pasted.
Summary:
if some edc code is pasted, the indentation could be corrupted.
let's make it fix automatically, even if indentation of
the pasted code is not correct, only when auto indent mode is enabled.

Reviewers: Jaehyun, Hermet

Projects: #enventor

Maniphest Tasks: T2174

Differential Revision: https://phab.enlightenment.org/D2601
2015-06-16 13:36:30 +09:00
ChunEon Park 2d9f86a30d autocomp: fix the resoucre directory path
auto_comp data is the library resource rather than application.
use the eina prefix rather then app data path.
2015-06-09 15:40:30 +09:00
Mykyta Biliavskyi 9ac6faaa9e edj viewer: update live view for different groups.
This happens, because edj file is rewrited and
descriptor lost. Reload all groups each time when
edj file rewrited.

@fix T2162
2015-05-28 19:37:25 +09:00
Mykyta Biliavskyi d18b1afdc2 Update part state in dependence of the cursor position.
Added ability to switch part state on live view, when
cursor located inside the "description" subblock of part.
In case when cursor move out from "description" block,
default state of part will be displayed.
2015-05-27 14:47:40 +09:00
ChunEon Park ae963003bb Revert " Update part state in dependence of the cursor position."
This reverts commit 165c955bee.

it's not intended patch. reverted.
2015-05-24 18:29:38 +09:00
ChunEon Park 165c955bee Update part state in dependence of the cursor position.
Summary:
Added ability to switch part state on live view, when cursor located inside the "description" subblock of part.
In case when cursor move out from "description" block, default state of part will be displayed.

Reviewers: Hermet, Jaehyun_Cho

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D2499
2015-05-22 22:24:34 +09:00
Jaehyun Cho 489d43a62a edc_editor: Add enventor_object_font_set()/get() APIs. 2015-03-26 22:00:43 +09:00
ChunEon Park 5fbe04485f Revert "edc_editor: Add enventor_object_font_set()/get() APIs."
This reverts commit 220e1fe10c.

font change is critically buggy.
need to test more and review in detail.
2015-03-01 03:13:17 +09:00
ChunEon Park 5e8f437df5 fix all annoying warnings. 2015-02-27 17:26:02 +09:00
Jaehyun Cho 220e1fe10c edc_editor: Add enventor_object_font_set()/get() APIs. 2015-02-27 16:38:46 +09:00
ChunEon Park 94fb905d65 lib/edc_editor: add 2 more apis - redo, undo. 2015-02-26 14:31:06 +09:00
Jaehyun Cho fe48ac5af7 edc_parser: Fix to enable inserting templates by live edit.
The problem that template is not inserted by live edit was caused by the wrong
double quotation marks parser.
The double quotation marks are written as "&quote;" in entry markup format and
they are written as "\"" in utf8 format.
Previously, only "&quote;" was used to parse double quotation marks.
Now, "&quote;" is used in entry markup format and "\"" is used in utf8 format
to parse double quotation marks.
2015-02-12 22:42:33 +09:00
Jaehyun Cho af1dc2f23d edc_parser: Fix to show double quotation marks(")
Change the markup for double quotation marks from "\"" to """.
2015-01-16 17:56:26 +09:00
Jaehyun Cho aeb4bcda16 syntax_color: Add enventor_object_syntax_color_set()/get().
Summary: Add enventor_object_syntax_color_set()/get() to support changing text color.

@feature

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1833
2015-01-05 13:27:54 +09:00
Jaehyun Cho 528389b95c ctxpopup: Support toggle candidate.
Summary:
Support toggle candidate.
         @feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1789
2014-12-19 14:36:49 +09:00
Jaehyun Cho f177939cd2 enventor_main: Add "live_view,loaded" enventor callback.
Summary:
Add "live_view,loaded" enventor callback to notice that view layout is newly loaded.
@feature

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1744
2014-12-12 19:48:30 +09:00
Jaehyun Cho f05dca3a22 Change the way of activating candidate ctxpopup.
Summary:
Change the way of activating candidate ctxpopup.
         @feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1729
2014-12-09 11:09:36 +09:00
Jaehyun Cho a4227ef9a4 setting: Add size configuration of Live View
Summary:
Add size configuration of Live View
@feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1667
2014-11-25 21:08:29 +09:00
Jaehyun Cho 98a9eca6c5 live_edit: Fix T1785 to restore live edit
Summary:
Fix T1785 to restore live edit
         @fix

Reviewers: Hermet

Maniphest Tasks: T1785

Differential Revision: https://phab.enlightenment.org/D1650
2014-11-12 16:44:19 +09:00
ChunEon Park 936fd19e35 ctxpopup: code refactoring
clear up code.
2014-11-03 13:43:13 +09:00
Jaehyun Cho 02fb416a85 ctxpopup: Fix T1753 (ctxpopup is not closed when esc is pressed)
Summary:
Fix to dismiss ctxpopup when esc is pressed or menu is opened
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1631
2014-11-03 12:19:33 +09:00
ChunEon Park c39f46970c lib/enventor: support focused smart callback. 2014-11-01 18:20:21 +09:00
Jaehyun Cho 7f6206269e search: Fix to clear selection when find window is moved or closed.
Summary: Fix to clear selection when find window is moved or closed. Otherwise, the selection block begins from old one.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1581
2014-10-28 01:23:24 +09:00
Jaehyun Cho 72e28a7310 enventor: Support "edc,modified" smart callback.
Summary: Support "edc,modified" smart callback. The event_info of edc,modified smart callback indicates whether the modification is done by itself or by other process.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1551
2014-10-23 16:39:31 +09:00
ChunEon Park 0a6dab3fbb edj_viewer: remove redundant function 2014-10-19 14:32:46 +09:00
ChunEon Park e5927b37eb library support.
current enventor apis are under beta apis.
im notice you these apis could be changed soon.
2014-09-30 23:56:16 +09:00