From 0ebd2624ae677ecd4b58c8e4abd37618ab5bb0c2 Mon Sep 17 00:00:00 2001
From: mitchell <70453897+orbitalquark@users.noreply.github.com>
Date: Mon, 12 Oct 2020 10:43:30 -0400
Subject: 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.
---
docs/api.md | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'docs/api.md')
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`
+
+#### `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.
+
#### `ui.command_entry.focus`()
--
cgit v1.2.3