diff options
author | Till Bungert <tillbungert@gmail.com> | 2025-02-13 15:24:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-13 08:24:01 -0600 |
commit | 93480f7fbaa5b4e5418d95dd35005daa6142dbb9 (patch) | |
tree | c9e5660e83172c13dca7f00b2669581d9d7811b5 /runtime | |
parent | e4c6e732fd042e879f1f2b6bbef169e5dfbbde8a (diff) | |
download | rneovim-93480f7fbaa5b4e5418d95dd35005daa6142dbb9.tar.gz rneovim-93480f7fbaa5b4e5418d95dd35005daa6142dbb9.tar.bz2 rneovim-93480f7fbaa5b4e5418d95dd35005daa6142dbb9.zip |
feat(term): trigger TermRequest for APC (#32407)
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 4 | ||||
-rw-r--r-- | runtime/doc/news.txt | 2 | ||||
-rw-r--r-- | runtime/doc/vvars.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vvars.lua | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index a82bac5de5..3ffbdf310f 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1004,8 +1004,8 @@ TermClose When a |terminal| job ends. Sets these |v:event| keys: status *TermRequest* -TermRequest When a |:terminal| child process emits an OSC - or DCS sequence. Sets |v:termrequest|. The +TermRequest When a |:terminal| child process emits an OSC, + DCS or APC sequence. Sets |v:termrequest|. The |event-data| is the request string. *TermResponse* TermResponse When Nvim receives an OSC or DCS response from diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index cfda05e6f5..c98084adb6 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -372,6 +372,8 @@ TERMINAL • The |terminal| has experimental support for the Kitty keyboard protocol (sometimes called "CSI u" key encoding). Only the "Disambiguate escape codes" mode is currently supported. +• The |terminal| emits a |TermRequest| autocommand event when the child process + emits an APC control sequence. TREESITTER diff --git a/runtime/doc/vvars.txt b/runtime/doc/vvars.txt index 0ebb54e38a..e4f6b10ef7 100644 --- a/runtime/doc/vvars.txt +++ b/runtime/doc/vvars.txt @@ -663,7 +663,7 @@ v:t_string Value of |String| type. Read-only. See: |type()| *v:termrequest* *termrequest-variable* v:termrequest - The value of the most recent OSC or DCS control sequence + The value of the most recent OSC, DCS or APC control sequence sent from a process running in the embedded |terminal|. This can be read in a |TermRequest| event handler to respond to queries from embedded applications. diff --git a/runtime/lua/vim/_meta/vvars.lua b/runtime/lua/vim/_meta/vvars.lua index c1b8695bbf..d7a80911c6 100644 --- a/runtime/lua/vim/_meta/vvars.lua +++ b/runtime/lua/vim/_meta/vvars.lua @@ -700,7 +700,7 @@ vim.v.t_number = ... --- @type integer vim.v.t_string = ... ---- The value of the most recent OSC or DCS control sequence +--- The value of the most recent OSC, DCS or APC control sequence --- sent from a process running in the embedded `terminal`. --- This can be read in a `TermRequest` event handler to respond --- to queries from embedded applications. |