aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/ta_api
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-12 10:43:30 -0400
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-12 10:43:30 -0400
commit0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2 (patch)
tree1219185a17d354006013d29c685e1f584d1bda34 /modules/lua/ta_api
parentff7f869ae0a02535dcc7f44a65dd3ea2fed87d01 (diff)
downloadtextadept-0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2.tar.gz
textadept-0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2.zip
Added `ui.command_entry.append_history()` for manually appending history.
Normally history is auto-appended by the default '\n' key handler, but some custom modes may have their own '\n' handlers and did not have a way to append history.
Diffstat (limited to 'modules/lua/ta_api')
-rw-r--r--modules/lua/ta_api1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/lua/ta_api b/modules/lua/ta_api
index 3d9a9b7f..a7db7a60 100644
--- a/modules/lua/ta_api
+++ b/modules/lua/ta_api
@@ -333,6 +333,7 @@ ansi_c _G.snippets.ansi_c (table)\nTable of C-specific snippets.
ansi_c _M.ansi_c (module)\nThe ansi_c module.\nIt provides utilities for editing C code.
any lexer.any (pattern)\nA pattern that matches any single character.
api_files textadept.editing.api_files (table)\nMap of lexer names to API documentation file tables.\nFile tables contain API file paths or functions that return such paths.\nEach line in an API file consists of a symbol name (not a fully qualified\nsymbol name), a space character, and that symbol's documentation. "\\n"\nrepresents a newline character.\n@see show_documentation
+append_history ui.command_entry.append_history(text)\nAppends the given text to the history for the current or most recent command\nentry mode.\n@param text String text to append to history.
append_text buffer.append_text(buffer, text)\nAppends string *text* to the end of the buffer without modifying any existing\nselections or scrolling the text into view.\n@param buffer A buffer.\n@param text The text to append.
arg _G.arg (table)\nTable of command line parameters passed to Textadept.\n@see args
args _G.args (module)\nProcesses command line arguments for Textadept.