diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-22 13:21:57 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-12-23 00:37:28 +0100 |
commit | a10636fbe7bb4dba45c42c64548e5e32fe8f8d12 (patch) | |
tree | a6fb8278c199c9c94a75e60419ad3700f33e00d1 /runtime | |
parent | 394f69a25dc32c5b101ba2d34ac6376b0c75b2a2 (diff) | |
download | rneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.tar.gz rneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.tar.bz2 rneovim-a10636fbe7bb4dba45c42c64548e5e32fe8f8d12.zip |
feat(ui): specify whether msg_show event is added to history
Pass along whether message in msg_show event is added to the internal
:messages history.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/news.txt | 12 | ||||
-rw-r--r-- | runtime/doc/ui.txt | 5 |
2 files changed, 11 insertions, 6 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 19c4e3b51d..8bfca39552 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -86,11 +86,13 @@ EVENTS • |vim.ui_attach()| callbacks for |ui-messages| `msg_show` events are executed in |api-fast| context. -• Various additions for the following UI events: - • `cmdline_show`: `hl_id` to highlight the prompt text. - • `cmdline_hide`: `abort` indicating if the cmdline was aborted. - • `msg_show`: new message kinds: "bufwrite", "completion", "list_cmd", - "lua_print", "number_prompt", "search_cmd", "undo", "wildlist". +• New/enhanced arguments in these existing UI events: + • `cmdline_show`: `hl_id` argument to highlight the prompt text. + • `cmdline_hide`: `abort` argument indicating if the cmdline was aborted. + • `msg_show`: + • `history` argument indicating if the message was added to the history. + • new message kinds: "bufwrite", "completion", "list_cmd", + "lua_print", "number_prompt", "search_cmd", "undo", "wildlist". HIGHLIGHTS diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt index 0082e9d76b..1b11565eeb 100644 --- a/runtime/doc/ui.txt +++ b/runtime/doc/ui.txt @@ -784,7 +784,7 @@ will be set to zero, but can be changed and used for the replacing cmdline or message window. Cmdline state is emitted as |ui-cmdline| events, which the UI must handle. -["msg_show", kind, content, replace_last] ~ +["msg_show", kind, content, replace_last, history] ~ Display a message to the user. kind @@ -827,6 +827,9 @@ must handle. true: Replace the message in the most-recent `msg_show` call, but any other visible message should still remain. + history + True if the message was added to the |:messages| history. + ["msg_clear"] ~ Clear all messages currently displayed by "msg_show". (Messages sent by other "msg_" events below will not be affected). |