forked from enlightenment/enventor
search - start to implement search/relace
This commit is contained in:
parent
5000b3c3a2
commit
9178443524
|
@ -27,6 +27,7 @@ enventor_SOURCES = \
|
|||
edj_mgr.c \
|
||||
build.c \
|
||||
hotkeys.c \
|
||||
search.c \
|
||||
globals.c
|
||||
|
||||
enventor_LDADD = @ENVENTOR_LIBS@
|
||||
|
|
|
@ -162,6 +162,12 @@ ctrl_func(app_data *ad, const char *key)
|
|||
//Go to Begin/End
|
||||
if (!strcmp(key, "Home") || !strcmp(key, "End"))
|
||||
return ECORE_CALLBACK_PASS_ON;
|
||||
//Find/Replace
|
||||
if (!strcmp(key, "f") || !strcmp(key, "F"))
|
||||
{
|
||||
search_edit_word(ad->ed, "RECT");
|
||||
return ECORE_CALLBACK_DONE;
|
||||
}
|
||||
//Template Code
|
||||
if (!strcmp(key, "t") || !strcmp(key, "T"))
|
||||
{
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#include <Elementary.h>
|
||||
#include "common.h"
|
||||
|
||||
void
|
||||
search_edit_word(edit_data *ed, const char *word)
|
||||
{
|
||||
printf("search word - %s\n", word);
|
||||
fflush(stdout);
|
||||
}
|
|
@ -18,4 +18,5 @@ EXTRA_DIST = common.h \
|
|||
indent.h \
|
||||
syntax_helper.h \
|
||||
template_code.h \
|
||||
hotkeys.h
|
||||
hotkeys.h \
|
||||
search.h
|
||||
|
|
|
@ -26,5 +26,6 @@ typedef struct indent_s indent_data;
|
|||
#include "build.h"
|
||||
#include "hotkeys.h"
|
||||
#include "base_gui.h"
|
||||
#include "search.h"
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue