mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
docs: Small nits and fixes
- Fix unsetting var - Use actual b64 value for 1 - Other small fixes for clarity
This commit is contained in:
parent
8f9d454dd0
commit
2199927cf1
3 changed files with 7 additions and 7 deletions
|
|
@ -52,8 +52,8 @@ than numbers. The syntax of the escape code is::
|
|||
<OSC> 21 ; key=value ; key=value ; ... <ST>
|
||||
|
||||
The spaces in the above definition are for reading clarity and should be ignored.
|
||||
Here, ``<OSC>`` is the two bytes ``0x1b (ESC)`` and ``0x5d (])``. ``ST`` is
|
||||
either ``0x7 (BEL)`` or the two bytes ``0x1b (ESC)`` and ``0x5c (\\)``.
|
||||
Here, ``<OSC>`` is the two bytes ``0x1b (ESC)`` and ``0x5d (])``. ``<ST>`` 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue