aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-12 10:43:30 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-12 10:43:30 -0400
commit0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2 (patch)
tree1219185a17d354006013d29c685e1f584d1bda34 /docs
parentff7f869ae0a02535dcc7f44a65dd3ea2fed87d01 (diff)
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')
-rw-r--r--docs/api.md10
-rw-r--r--docs/manual.md2
2 files changed, 12 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`()
diff --git a/docs/manual.md b/docs/manual.md
index 4fce4653..1efe9acc 100644
--- a/docs/manual.md
+++ b/docs/manual.md
@@ -1916,6 +1916,7 @@ N/A |Added |[highlight_all_matches][]
bufstatusbar\_text |Renamed |[buffer_statusbar_text][]
**ui.command_entry** | |
N/A |Added |[active][]
+N/A |Added |[append_history][]
**ui.dialogs** | |
N/A |Added |[progressbar()][]
**ui.find** | |
@@ -1962,6 +1963,7 @@ section below.
[paths]: api.html#textadept.snippets.paths
[buffer_statusbar_text]: api.html#ui.buffer_statusbar_text
[active]: api.html#ui.command_entry.active
+[append_history]: api.html#ui.command_entry.append_history
[progressbar()]: api.html#ui.dialogs.progressbar
##### Buffer Indexing Changes