diff options
author | 2020-10-12 10:43:30 -0400 | |
---|---|---|
committer | 2020-10-12 10:43:30 -0400 | |
commit | 0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2 (patch) | |
tree | 1219185a17d354006013d29c685e1f584d1bda34 /docs/api.md | |
parent | ff7f869ae0a02535dcc7f44a65dd3ea2fed87d01 (diff) | |
download | textadept-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 'docs/api.md')
-rw-r--r-- | docs/api.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api.md b/docs/api.md index b601efad..f3f8b180 100644 --- a/docs/api.md +++ b/docs/api.md @@ -7996,6 +7996,16 @@ The height in pixels of the command entry. ### Functions defined by `ui.command_entry` +<a id="ui.command_entry.append_history"></a> +#### `ui.command_entry.append_history`(*text*) + +Appends the given text to the history for the current or most recent command +entry mode. + +Parameters: + +* *`text`*: String text to append to history. + <a id="ui.command_entry.focus"></a> #### `ui.command_entry.focus`() |