aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-14 07:43:07 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-05-23 18:18:16 +0200
commit6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7 (patch)
tree7a6e50a3e6ecff85882d91f0a503a212312ee334 /runtime
parentf1bc152fa081f5d630ea1a027aa5bd00bdbb78f0 (diff)
downloadrneovim-6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7.tar.gz
rneovim-6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7.tar.bz2
rneovim-6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7.zip
api: list information about all channels/jobs.
Fire autocmd when channel opens or its info changes. Add a way for API clients can describe themselves.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 0b7cd5b2cd..df36969fe3 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -261,6 +261,8 @@ Name triggered by ~
|SwapExists| detected an existing swap file
|TermOpen| when a terminal job starts
|TermClose| when a terminal job ends
+|ChanOpen| after a channel opened
+|ChanInfo| after a channel has its state changed
Options
|FileType| when the 'filetype' option has been set
@@ -487,6 +489,19 @@ BufWriteCmd Before writing the whole buffer to a file.
*BufWritePost*
BufWritePost After writing the whole buffer to a file
(should undo the commands for BufWritePre).
+ *ChanInfo*
+ChanInfo State of channel changed, for instance the
+ client of a RPC channel described itself.
+ Sets these |v:event| keys:
+ info
+ See |nvim_get_chan_info| for the format of the
+ info Dictionary.
+ *ChanOpen*
+ChanOpen Just after a channel was opened.
+ Sets these |v:event| keys:
+ info
+ See |nvim_get_chan_info| for the format of the
+ info Dictionary.
*CmdUndefined*
CmdUndefined When a user command is used but it isn't
defined. Useful for defining a command only