mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Docs: Remove extra backslashes from commented config
Update docs to use \e in the example.
This commit is contained in:
@@ -113,6 +113,8 @@ def remove_markup(text: str) -> str:
|
|||||||
if key in ('ac', 'opt'):
|
if key in ('ac', 'opt'):
|
||||||
t, q = extract(m)
|
t, q = extract(m)
|
||||||
return f'{t} {q}' if q and q != t else t
|
return f'{t} {q}' if q and q != t else t
|
||||||
|
if key == 'code':
|
||||||
|
return m.group(2).replace('\\\\', '\\')
|
||||||
|
|
||||||
return str(m.group(2))
|
return str(m.group(2))
|
||||||
|
|
||||||
|
|||||||
@@ -3991,8 +3991,8 @@ keyboard protocol. The special value :code:`all` means all of them.
|
|||||||
Some more examples::
|
Some more examples::
|
||||||
|
|
||||||
# Output a word and move the cursor to the start of the line (like typing and pressing Home)
|
# Output a word and move the cursor to the start of the line (like typing and pressing Home)
|
||||||
map ctrl+alt+a send_text normal Word\\x1b[H
|
map ctrl+alt+a send_text normal Word\\e[H
|
||||||
map ctrl+alt+a send_text application Word\\x1bOH
|
map ctrl+alt+a send_text application Word\\eOH
|
||||||
# Run a command at a shell prompt (like typing the command and pressing Enter)
|
# Run a command at a shell prompt (like typing the command and pressing Enter)
|
||||||
map ctrl+alt+a send_text normal,application some command with arguments\\r
|
map ctrl+alt+a send_text normal,application some command with arguments\\r
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user