From 2199927cf1e65430d98849f8398c8d305bc4bf85 Mon Sep 17 00:00:00 2001 From: Arvin Verain Date: Mon, 27 Oct 2025 11:22:29 +0800 Subject: [PATCH] docs: Small nits and fixes - Fix unsetting var - Use actual b64 value for 1 - Other small fixes for clarity --- docs/color-stack.rst | 4 ++-- docs/mapping.rst | 8 ++++---- kitty/rc/scroll_window.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/color-stack.rst b/docs/color-stack.rst index 8494b8828..f946ea733 100644 --- a/docs/color-stack.rst +++ b/docs/color-stack.rst @@ -52,8 +52,8 @@ than numbers. The syntax of the escape code is:: 21 ; key=value ; key=value ; ... The spaces in the above definition are for reading clarity and should be ignored. -Here, ```` is the two bytes ``0x1b (ESC)`` and ``0x5d (])``. ``ST`` is -either ``0x7 (BEL)`` or the two bytes ``0x1b (ESC)`` and ``0x5c (\\)``. +Here, ```` is the two bytes ``0x1b (ESC)`` and ``0x5d (])``. ```` is +either ``0x07 (BEL)`` or the two bytes ``0x1b (ESC)`` and ``0x5c (\\)``. ``key`` is a number from 0-255 to query or set the color values from the terminals ANSI color table, or one of the strings in the table below for diff --git a/docs/mapping.rst b/docs/mapping.rst index 260a2d402..17ac13930 100644 --- a/docs/mapping.rst +++ b/docs/mapping.rst @@ -201,7 +201,7 @@ In order to make this work, you need to configure your editor as shown below: In :file:`~/.vimrc` add: .. code-block:: vim - let &t_ti = &t_ti . "\033]1337;SetUserVar=in_editor=MQo\007" + let &t_ti = &t_ti . "\033]1337;SetUserVar=in_editor=MQ==\007" let &t_te = &t_te . "\033]1337;SetUserVar=in_editor\007" .. tab:: neovim @@ -214,9 +214,9 @@ In order to make this work, you need to configure your editor as shown below: group = vim.api.nvim_create_augroup("KittySetVarVimEnter", { clear = true }), callback = function() if vim.api.nvim_ui_send then - vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQo\007") + vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQ==\007") else - io.stdout:write("\x1b]1337;SetUserVar=in_editor=MQo\007") + io.stdout:write("\x1b]1337;SetUserVar=in_editor=MQ==\007") end end, }) @@ -225,7 +225,7 @@ In order to make this work, you need to configure your editor as shown below: group = vim.api.nvim_create_augroup("KittyUnsetVarVimLeave", { clear = true }), callback = function() if vim.api.nvim_ui_send then - vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQo\007") + vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor\007") else io.stdout:write("\x1b]1337;SetUserVar=in_editor\007") end diff --git a/kitty/rc/scroll_window.py b/kitty/rc/scroll_window.py index 51399d715..d33f475ca 100644 --- a/kitty/rc/scroll_window.py +++ b/kitty/rc/scroll_window.py @@ -29,7 +29,7 @@ class ScrollWindow(RemoteCommand): ' For example, :code:`30` will scroll down 30 lines, :code:`2p-`' ' will scroll up 2 pages and :code:`0.5p` will scroll down half page.' ' :code:`3u` will *unscroll* by 3 lines, which means that 3 lines will move from the' - ' scrollback buffer onto the top of the screen. :code:`1r-` will scroll to the previous prompt and 1r to the next prompt.' + ' scrollback buffer onto the top of the screen. :code:`1r-` will scroll to the previous prompt and :code:`1r` to the next prompt.' ' See :ac:`scroll_to_prompt` for details on how scrolling to prompt works.' ) options_spec = MATCH_WINDOW_OPTION + '''\n