aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/ta_api
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2020-11-01 23:30:43 -0500
committermitchell <70453897+orbitalquark@users.noreply.github.com>2020-11-01 23:30:43 -0500
commit85b8810660ffa37eb2d3edf85a4dbf12ba5f1ca3 (patch)
treec364b17b99c60326e7c85278c29ffc2c6584f598 /modules/lua/ta_api
parent2ec90788dc08346d74a79877a35f91c74d661688 (diff)
downloadtextadept-85b8810660ffa37eb2d3edf85a4dbf12ba5f1ca3.tar.gz
textadept-85b8810660ffa37eb2d3edf85a4dbf12ba5f1ca3.zip
Added optional mode parameter to `ui.command_entry.append_history()`.
This allows for arbitrary appending to history, not just for the current or most recent mode.
Diffstat (limited to 'modules/lua/ta_api')
-rw-r--r--modules/lua/ta_api2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/ta_api b/modules/lua/ta_api
index 31327fc8..5832ece4 100644
--- a/modules/lua/ta_api
+++ b/modules/lua/ta_api
@@ -333,7 +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.\nThis should only be called if `ui.command_entry.run()` is called with a keys\ntable that has a custom binding for the Enter key ('\\n').\nOtherwise, history is automatically appended as needed.\n@param text String text to append to history.
+append_history ui.command_entry.append_history(f, text)\nAppends string *text* to the history for command entry mode *f* or the\ncurrent or most recent mode.\nThis should only be called if `ui.command_entry.run()` is called with a keys\ntable that has a custom binding for the Enter key ('\\n').\nOtherwise, history is automatically appended as needed.\n@param f Optional command entry mode to append history to. This is a function\n passed to `ui.command_entry_run()`. If omitted, uses the current or most\n recent 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.