From 102c01ba2db51190c7c79592a6ea2fdb29d4d4fa Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 17 Jun 2008 16:43:09 -0400 Subject: Added Tab-completion to Lua Command Entry. --- src/textadept.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/textadept.h') diff --git a/src/textadept.h b/src/textadept.h index 70f83447..617d5766 100644 --- a/src/textadept.h +++ b/src/textadept.h @@ -23,7 +23,8 @@ extern GtkWidget *window, *focused_editor, *command_entry, *pm_container, *pm_entry, *pm_view, *findbox, *find_entry, *replace_entry; -extern GtkTreeStore *pm_store; +extern GtkEntryCompletion *command_entry_completion; +extern GtkTreeStore *cec_store, *pm_store; extern lua_State *lua; static const char *textadept_home = "/usr/share/textadept/"; @@ -45,7 +46,7 @@ void resize_split(GtkWidget *editor, int pos, bool increment=true); void set_menubar(GtkWidget *menubar); void set_statusbar_text(const char *text); void set_docstatusbar_text(const char *text); -void command_toggle_focus(); +void ce_toggle_focus(); void set_default_editor_properties(ScintillaObject *sci); void set_default_buffer_properties(ScintillaObject *sci); @@ -69,6 +70,9 @@ bool l_handle_keypress(int keyval, bool shift, bool control, bool alt); void l_handle_scnnotification(SCNotification *n); void l_ta_command(const char *command); +bool l_cec_get_completions_for(const char *entry_text); +void l_cec_populate(); + bool l_pm_get_contents_for(const char *entry_text, bool expanding=false); void l_pm_populate(GtkTreeIter *initial_iter=NULL); void l_pm_get_full_path(GtkTreePath *path); -- cgit v1.2.3