Commit Graph

206 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 06695c7c55 Redo/Undo: implementation of redo/undo feature.
Summary:
Add module redoundo.c/.h.
Support:
  -    auto intend feature;
  -    autocomplete feature;
  -    code templates insert;
  -    paste text from buffer;
  -    line delete.

Control keys: Undo - **ctrl+z**; Redo - **ctrl + y**.

Need to implement:
  -    API for setting max size queue of changes.
  -    Smart algorithm for management changes.

Known issues:
 on large text(more than 1000 chars) redo, sometimes text inserted in wrong position;

Reviewers: Hermet

Subscribers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1258

Conflicts:

	src/bin/Makefile.am
	src/bin/menu.c
	src/include/Makefile.am
	src/include/common.h
2014-08-02 14:00:55 +09:00
ChunEon Park e592d65053 code refactoring.
split setting.c out from the menu.
2014-07-30 18:10:18 +09:00
ChunEon Park 6d0c720b20 fixed some memory leaks that detected by valgrind. 2014-07-19 15:07:25 +09:00
ChunEon Park adae9b6fd3 introduce new feature, auto completion. 2014-07-19 13:31:08 +09:00
ChunEon Park 01ceaa935c set focus on editor correctly.
previous menu_open_depth() is invalid bacause the menu would have close animation.
so right after closing the menu, the menu depth was invalid.

now get the menu depth and set focus on the editor after closing animation is finished.
2014-07-12 17:17:18 +09:00
ChunEon Park 5b6785e252 edj_viewer - recover the live view feature.
Since the edje has been lost the edj file watching,
enventor implement it by it's own way.
2014-07-12 16:01:50 +09:00
ChunEon Park 70477f47a4 newfile - new feature come.
now user choose a template at new file.
2014-07-10 13:43:55 +09:00
ChunEon Park 4e8e915cbe search - fixed missing of a next word selection.
This is a side effect of partial syntax color updation.
Apply syntax color full updation if search mode is enabled.
and whenever word is replaced, repeat the syntax color full updation again.
2014-06-05 00:50:41 +09:00
ChunEon Park 5f14bcbdd7 Revert "enventor - disable auto scroll mode."
This reverts commit 5fe34acc35.

Conflicts:

	src/bin/main.c
2014-06-02 16:27:54 +09:00
ChunEon Park 96f1c73338 main - enable highlight clip. 2014-06-02 13:13:09 +09:00
ChunEon Park 5fe34acc35 enventor - disable auto scroll mode.
auto scroll is not proper for the traditional editor users who may be familiar with it.
2014-06-02 13:10:47 +09:00
ChunEon Park 0cf6bf5b51 goto - added new feature, go to line 2014-06-01 15:35:54 +09:00
ChunEon Park 6104c3cd7f syntax_color: apply syntax_color on only visible text region.
it's really faster than before while editing large text.
2014-05-26 23:35:57 +09:00
ChunEon Park 034d3df585 main - clean up some workaround code about entry odd character insertion.
After zmike modified that edje_entry inserts odd characters if the control key doesn't supported,
this workaround code is not required anymore.
2014-05-13 00:08:54 +09:00
ChunEon Park b653cf3b28 main - Modified font size short cut key.
Now you can change font size by using mouse wheel.

If the cursor is on the edje view, the view scale will be changed,
if the cursor on the editor, on the other hand, the font size will be changed.
2014-05-12 23:44:49 +09:00
Carsten Haitzler eff12796ba show window after filling it with content - then wm can place it properly 2014-05-12 18:04:22 +09:00
ChunEon Park 24235f4355 newfile - open a new file with command line specified file path.
Previously, the edc file is not exists that specified on the command line,
then the new file was opened with /tmp/.proto.edc

Now, the file path will be kept with user specified.
2014-03-15 17:20:42 +09:00
ChunEon Park 654e8432c3 statusbar - Don't toggle the state when eventor is launching. 2014-03-14 18:00:47 +09:00
ChunEon Park 7ab80a9c14 status - don't display part highlight message when setting change is applied. 2014-03-13 04:12:14 +09:00
ChunEon Park 5a4d2baaf3 newfile - open real "new" template code when NEW file is requested.
previously, it doesn't open a new template code but modified one.
now it's fixed.
2014-03-13 03:54:03 +09:00
ChunEon Park edbf669979 enventor - on implementing line deletion. 2014-03-10 02:15:31 +09:00
ChunEon Park 084211579f hotkeys - renames to tools
conceptually, the function is changed.
2014-03-09 01:22:54 +09:00
ChunEon Park a565c48f24 statusbar - updated statusbar
reset shortcut key from f6 to f10
refactored internal function.
2014-03-09 01:12:28 +09:00
ChunEon Park 60a74d4676 hotkeys - redesign ui.
migrate toggle key to setting menu
2014-03-09 01:05:26 +09:00
ChunEon Park c8e85f3a68 f5/f6 short cut keys had multiple functions.
caused by dc3ce7be3f
2014-03-08 22:58:08 +09:00
ChunEon Park dc3ce7be3f hotkeys - redesign ui 2014-03-08 22:55:48 +09:00
ChunEon Park de8164bcb9 search - on implementing. 2014-03-02 13:34:22 +09:00
ChunEon Park fb1b4d861f search - on implementing search function. 2014-02-26 10:36:53 +09:00
ChunEon Park 9178443524 search - start to implement search/relace 2014-02-22 15:24:53 +09:00
ChunEon Park b229686519 config - override the paths only those are actually existed. 2014-02-18 20:34:03 +09:00
ChunEon Park fdc0868632 stats - refactoring code.
keep the func name consistency.
2014-02-18 14:42:30 +09:00
ChunEon Park de5139f31c config - place the enventor config foler in the XDG Config Home directory. 2014-02-18 11:47:09 +09:00
ChunEon Park a6c73fcbf8 support ELM_ENGINE environemnt set for gl
gl backened is often used for test.
Until resolving all values reset by elm_config_profile_set().
we added this kind of workaround code.
2014-02-07 16:58:18 +09:00
ChunEon Park 3522d0d25e editor/statusbar - let's initialize states according to the config value. 2014-02-06 18:55:51 +09:00
ChunEon Park 0e7f161e9d removed void delcaration as the parameter.
It doesn't mean that i don't agree on this.
But for code consistency i removed.
2014-02-05 20:27:03 +09:00
Daniel Juyung Seo 9262556d4e enventor - fixed all the build warnings and errors from refactoring commit. 2014-02-05 09:55:38 +09:00
ChunEon Park e0672e4ae5 statusbar - refactoring.
make it singleton style.
it's clear that statusbar has only one instance.
2014-02-04 22:45:41 +09:00
ChunEon Park d72b0756d2 edj_mgr - refactoring.
removed edj_mgr instance handling outside of the edj_mgr.
edj_mgr is also singleton instance.
don't need to handle the instant unnecessarily.
2014-02-04 22:20:40 +09:00
ChunEon Park 542e2a9075 enventor - code clean up.
hide data types as possible.
2014-02-04 21:48:06 +09:00
ChunEon Park 79eb7b7f88 modify gui.
display file path on the window title not on the statusbar.
2014-02-04 17:55:56 +09:00
ChunEon Park afb618365a refactoring.
Added base_gui for handling basic window, layout and panes so that other files refer them.
2014-02-04 17:20:39 +09:00
Jihoon Kim fa85c1bf15 Use key not keyname for considering setxkbmap
ex> setxbmap -layout fr
In french layout, 'q' key will be replaced with 'a'. Therefore, key should be used instead of keyname.
2014-02-01 16:22:00 +09:00
ChunEon Park 3aefa8ff8a hotkeys - add a trigger button for hotkey gui enable/disable 2014-01-30 12:18:31 +09:00
ChunEon Park faf6a5f803 hotkeys - enable f5, f6 hotkeys. 2014-01-30 03:17:59 +09:00
ChunEon Park 4fcf8eaef7 config - got rid of config instance handling outside of the config_data scope.
count config as a singletone instance also.
since we won't handle multiple configs in the enventor.
2014-01-30 02:45:10 +09:00
ChunEon Park 9af9369c79 refactoring - got rid of menu instance handling.
count menu as a singleton instance.
since we can not image multiple menus in the enventor.

now code is getting simpler.
2014-01-30 01:15:33 +09:00
ChunEon Park 4542644e81 implementing hotkey menu 2014-01-29 22:28:02 +09:00
ChunEon Park 3024ee6cca refactoring - removed menu_opened variable from the main.
it's duplicated variable to require sync.
menu itself keeps the menu_open status.
2014-01-29 21:56:29 +09:00
ChunEon Park 92ed6d5e65 keep the current view scale even if new views are come. 2014-01-29 15:42:30 +09:00
ChunEon Park 6ab7716874 apply gui to set the view scale in the option menu. 2014-01-28 15:22:26 +09:00
ChunEon Park 867c6bf2ed support view scale factor change.
use ctrl + mouse wheel up/down
2014-01-27 01:21:02 +09:00
ChunEon Park 303bd779e1 enventor - no more support theme change.
now enventor works only on the dark theme based.
2013-10-18 13:41:47 +09:00
ChunEon Park bc4cf45aaf enventor - refactoring code for build system. 2013-09-29 00:13:52 +09:00
ChunEon Park 414186a9d7 enventor - support theme change in the option
but panes bug eeeeek.
2013-09-24 02:29:46 +09:00
Daniel Juyung Seo 0d491c03a3 enventor - fix theme detect routine.
use elm_theme_get as well as ELM_THEME env variable.
2013-09-23 17:01:11 +09:00
Daniel Juyung Seo 543156a14b enventor - fix formatting before working on it. 2013-09-23 17:01:10 +09:00
ChunEon Park 609cc9cb59 enventor - support dark theme 2013-09-20 20:21:51 +09:00
ChunEon Park b091589cf6 enventor - reset the theme properly after profile set. 2013-09-20 15:27:47 +09:00
ChunEon Park 6fe5a10817 enventor - clean the views when new edc file is loaded. 2013-09-19 21:42:42 +09:00
ChunEon Park 52e5e71e7d enventor - no don't delete the object 2013-09-19 21:05:22 +09:00
ChunEon Park fb01285232 enventor - kill the views after caching time is passed. 2013-09-19 18:52:30 +09:00
ChunEon Park 5c51752bd1 enventor - don't set null to status info. 2013-09-19 17:52:12 +09:00
ChunEon Park eb38a5da4d enventor - applied view switching effect. 2013-09-19 17:44:51 +09:00
ChunEon Park 7a23ac221f enventor - implemented group switching feature. 2013-09-19 16:49:58 +09:00
ChunEon Park f471f555ba enventor - use macro to simplify code. 2013-09-19 13:54:45 +09:00
ChunEon Park 82515d3c30 enventor - introducing edj manager 2013-09-19 13:42:34 +09:00
ChunEon Park cdbfb514f8 enventor - code refactoring before implementing futher group switching feature. 2013-09-19 02:05:46 +09:00
ChunEon Park 15b6b18bf5 enventor - code refactoring.
removed unnencessary variables.
move group_name_get() to stats.
2013-09-19 01:43:10 +09:00
ChunEon Park bb6f0cd5e8 enventor - code refactoring 2013-09-19 00:14:34 +09:00
ChunEon Park a1d5eba453 enventor - fixed all warnings. cool! 2013-09-12 22:14:16 +09:00
ChunEon Park f332b43492 enventor - code cleanup and split global vars from main.c to it's own file. 2013-09-12 00:45:28 +09:00
ChunEon Park 7b01ace5e3 enventor - support cut the selected text. 2013-09-09 23:17:17 +09:00
ChunEon Park 611c8ad753 enventor - don't pass key events to the entry except home/end key
still entry prints bizarre characters when pressing ctrl + keys.
2013-09-09 00:48:56 +09:00
ChunEon Park c990cd7cbc enventor - fix messages to make consistency. 2013-09-08 17:45:56 +09:00
ChunEon Park ee1313efd1 enventor - fix broken ctrl+home / ctrl+end actions. 2013-09-08 15:58:23 +09:00
ChunEon Park 8e76d36aae enventor - choose the word by ctrl + double clicking. 2013-09-08 15:34:44 +09:00
ChunEon Park 1ed8b1ba79 enventor - now user run the program instantly by double click the "program" keyword. 2013-09-08 15:27:23 +09:00
ChunEon Park 7807b9ad43 enventor - reverted reverted commit. 5da9e96617.
since that problem is still valid....

and implementing program run feature.
2013-09-05 23:44:21 +09:00
ChunEon Park 030a962b46 enventor - use default directory paths obligatorily for edj compile. and add event layer to track the mousr position. 2013-09-01 13:38:51 +09:00
ChunEon Park 1343f0586a enventor - missed template code header 2013-09-01 03:49:17 +09:00
ChunEon Park 0262bb3afa enventor - added a feature: part template code insert. 2013-09-01 02:50:17 +09:00
ChunEon Park 03a81db767 enventor - cleanup code 2013-08-31 21:05:02 +09:00
ChunEon Park 2c51d81a3a enventor - implementing template code inserting feature. 2013-08-31 21:03:11 +09:00
ChunEon Park 38520e73af enventor - renamed help to about 2013-08-31 01:40:15 +09:00
ChunEon Park 76eab51421 enventor - removed periods for msg consistency 2013-08-28 21:58:25 +09:00
ChunEon Park 2c9f23af61 enventor - support auto indentation short-cut key. 2013-08-28 21:55:39 +09:00
ChunEon Park 9cc06885dc enventor - support data path set in edc compiling 2013-08-28 13:16:34 +09:00
ChunEon Park a485774263 enventor - now you can set the font path 2013-08-28 02:26:13 +09:00
Daniel Juyung Seo 9402d4eef4 enventor: removed unnecessary macros. 2013-08-27 10:51:54 +09:00
ChunEon Park 9a7c8f12ef enventor - remove unnecessary declare 2013-08-27 03:47:44 +09:00
Leonid Dydnik c0a930c235 enventor - fix building error
Submitted-By: Leonid Dudnick
2013-08-27 03:44:22 +09:00
ChunEon Park d3f066b9f2 enventor - support f2, f3, f4, f12 short cut keys 2013-08-26 02:17:57 +09:00
ChunEon Park 88db53d98e enventor - internal refactoring. split a function 2013-08-26 01:53:19 +09:00
ChunEon Park 42a7d087d9 enventor - changed load short cut key to F4 2013-08-25 14:47:46 +09:00
ChunEon Park 9cea964760 enventor - fixed typo 2013-08-25 14:30:09 +09:00
ChunEon Park 01418bc66e enventor - dont print statusbar msgs if user change some states in setting menu. 2013-08-25 03:39:39 +09:00
ChunEon Park 0903e0e352 enventor - rename from option_data to config_data 2013-08-25 02:41:53 +09:00
ChunEon Park 6f8611a671 enventor - support font size up/down short-cut keys 2013-08-25 01:46:56 +09:00
ChunEon Park fbdf69c69a enventor - support font size select. 2013-08-22 21:47:23 +09:00
ChunEon Park a98f78455f enventor - changed panes behavior a little.
now, you can switch the full <-> split view by press/click the arrows again.
2013-08-21 02:00:45 +09:00
ChunEon Park a34d85f9fa enventor - return a value that indicates the success actually. 2013-08-16 00:20:28 +09:00
ChunEon Park 8bbcc5da08 enventor - renamed theme to themes 2013-08-10 03:08:14 +09:00
ChunEon Park 164a7ec6f8 Merge branch 'master' of git+ssh://git.enlightenment.org/devs/hermet/enventor
Conflicts:
	configure.ac
	data/.proto/Makefile.am
	src/bin/main.c

fix to install proto properly
2013-08-10 02:38:19 +09:00
ChunEon Park c503005250 enventor - install default files properly 2013-08-10 02:26:37 +09:00
Cedric Bail 4d0a962c4c enventor: get initialization correctly. 2013-08-09 10:35:18 +09:00
Cedric Bail 5deb9ee755 enventor: begin adding autofoo support. 2013-08-08 18:04:22 +09:00