diff --git a/geanylua/docs/geanylua-ref.html b/geanylua/docs/geanylua-ref.html index d07f557c1..9795c165e 100644 --- a/geanylua/docs/geanylua-ref.html +++ b/geanylua/docs/geanylua-ref.html @@ -181,6 +181,11 @@
+Sends a message to the status tab of the messages window. +
+The message argument is the string to be displayed. +
+This function's purpose is to provide a user-friendly way to display messages without using the dialog popup. +
+This function does not return a value.
When called with no arguments, returns the entire text of the currently diff --git a/geanylua/glspi_app.c b/geanylua/glspi_app.c index 3e3dcd165..fa073f78d 100644 --- a/geanylua/glspi_app.c +++ b/geanylua/glspi_app.c @@ -282,6 +282,15 @@ static gint dirlist_closure(lua_State *L) } +static gint glspi_status(lua_State* L) +{ + const gchar *string = lua_tostring(L,1); + + msgwin_status_add("%s", string); + + return 0; +} + static gint glspi_dirlist(lua_State* L) { @@ -599,6 +608,7 @@ static const struct luaL_reg glspi_app_funcs[] = { {"xsel", glspi_xsel}, {"signal", glspi_signal}, {"stat", glspi_stat}, + {"status", glspi_status}, {"basename", glspi_basename}, {"dirname", glspi_dirname}, {"fullpath", glspi_fullpath}, diff --git a/geanylua/keywords.list b/geanylua/keywords.list index b31255880..986f34188 100644 --- a/geanylua/keywords.list +++ b/geanylua/keywords.list @@ -7,4 +7,4 @@ word5=0xf0a000;0xffffff;false;false ## Put this in the [keywords] section: -user1=geany.activate geany.appinfo geany.banner geany.basename geany.batch geany.byte geany.caller geany.caret geany.choose geany.close geany.confirm geany.copy geany.count geany.cut geany.dirlist geany.dirname geany.dirsep geany.documents geany.fileinfo geany.filename geany.find geany.fullpath geany.height geany.input geany.keycmd geany.keygrab geany.launch geany.length geany.lines geany.match geany.message geany.navigate geany.newfile geany.open geany.optimize geany.paste geany.pickfile geany.pluginver geany.rectsel geany.rescan geany.rowcol geany.save geany.scintilla geany.script geany.select geany.selection geany.signal geany.stat geany.text geany.timeout geany.wkdir geany.word geany.wordchars geany.xsel geany.yield dialog.checkbox dialog.color dialog.file dialog.font dialog.group dialog.heading dialog.hr dialog.label dialog.new dialog.option dialog.password dialog.radio dialog.run dialog.select dialog.text dialog.textarea keyfile.comment keyfile.data keyfile.groups keyfile.has keyfile.keys keyfile.new keyfile.remove keyfile.value +user1=geany.activate geany.appinfo geany.banner geany.basename geany.batch geany.byte geany.caller geany.caret geany.choose geany.close geany.confirm geany.copy geany.count geany.cut geany.dirlist geany.dirname geany.dirsep geany.documents geany.fileinfo geany.filename geany.find geany.fullpath geany.height geany.input geany.keycmd geany.keygrab geany.launch geany.length geany.lines geany.match geany.message geany.navigate geany.newfile geany.open geany.optimize geany.paste geany.pickfile geany.pluginver geany.rectsel geany.rescan geany.rowcol geany.save geany.scintilla geany.script geany.select geany.selection geany.signal geany.stat geany.status geany.text geany.timeout geany.wkdir geany.word geany.wordchars geany.xsel geany.yield dialog.checkbox dialog.color dialog.file dialog.font dialog.group dialog.heading dialog.hr dialog.label dialog.new dialog.option dialog.password dialog.radio dialog.run dialog.select dialog.text dialog.textarea keyfile.comment keyfile.data keyfile.groups keyfile.has keyfile.keys keyfile.new keyfile.remove keyfile.value