From 6da4548f0e7ccaf2b3271c0b0d59b5c8869792a7 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 May 2017 07:43:07 +0200 Subject: 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. --- runtime/doc/autocmd.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'runtime') 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 -- cgit