diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-11-16 11:35:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 11:35:54 -0600 |
commit | 4bf47222c973c4bc935d6fde106329f8a0e103e3 (patch) | |
tree | 0907dba93d28f3ec0fde9cc15efb4e9cdd7ffef4 /runtime/doc | |
parent | b4b7ca2d548a1cc1a2cd8c48e5c93478811bd275 (diff) | |
download | rneovim-4bf47222c973c4bc935d6fde106329f8a0e103e3.tar.gz rneovim-4bf47222c973c4bc935d6fde106329f8a0e103e3.tar.bz2 rneovim-4bf47222c973c4bc935d6fde106329f8a0e103e3.zip |
feat: add vim.text module (#26069)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lua.txt | 22 | ||||
-rw-r--r-- | runtime/doc/news.txt | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index db240e8b75..596b58d4ff 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -3752,4 +3752,26 @@ vim.snippet.jumpable({direction}) *vim.snippet.jumpable()* Return: ~ (boolean) + +============================================================================== +Lua module: vim.text *vim.text* + +vim.text.hexdecode({enc}) *vim.text.hexdecode()* + Hex decode a string. + + Parameters: ~ + • {enc} (string) String to decode + + Return: ~ + (string) Decoded string + +vim.text.hexencode({str}) *vim.text.hexencode()* + Hex encode a string. + + Parameters: ~ + • {str} (string) String to encode + + Return: ~ + (string) Hex encoded string + vim:tw=78:ts=8:sw=4:sts=4:et:ft=help:norl: diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index ae97772b66..98848f548f 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -214,6 +214,9 @@ The following new APIs and features were added. • The 'termsync' option asks the terminal emulator to buffer screen updates until the redraw cycle is complete. Requires support from the terminal. +• Added |vim.text.hexencode()| and |vim.text.hexdecode()| to convert strings + to and from byte representations. + ============================================================================== CHANGED FEATURES *news-changed* |