search - start to implement search/relace

This commit is contained in:
ChunEon Park 2014-02-22 15:24:53 +09:00
parent 5000b3c3a2
commit 9178443524
5 changed files with 19 additions and 1 deletions

View File

@ -27,6 +27,7 @@ enventor_SOURCES = \
edj_mgr.c \
build.c \
hotkeys.c \
search.c \
globals.c
enventor_LDADD = @ENVENTOR_LIBS@

View File

@ -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"))
{

9
src/bin/search.c Normal file
View File

@ -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);
}

View File

@ -18,4 +18,5 @@ EXTRA_DIST = common.h \
indent.h \
syntax_helper.h \
template_code.h \
hotkeys.h
hotkeys.h \
search.h

View File

@ -26,5 +26,6 @@ typedef struct indent_s indent_data;
#include "build.h"
#include "hotkeys.h"
#include "base_gui.h"
#include "search.h"
#endif