diff --git a/docs/conf.rst b/docs/conf.rst index 95cf5c8fa..348b6e29d 100644 --- a/docs/conf.rst +++ b/docs/conf.rst @@ -27,7 +27,7 @@ line. .. _include: -You can include secondary config files via the :code:`include` directive. If +You can include secondary config files via the :code:`include` directive. If you use a relative path for :code:`include`, it is resolved with respect to the location of the current config file. Note that environment variables are expanded, so :code:`${USER}.conf` becomes :file:`name.conf` if diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 5bc79535e..249409114 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -3969,7 +3969,7 @@ when pressing specified shortcut keys. For example:: This will send "Special text" when you press the :kbd:`Ctrl+Alt+A` key combination. The text to be sent is a python string literal so you can use -escapes like :code:`\\x1b` to send control codes or :code:`\\u21fb` to send +escapes like :code:`\\\\x1b` to send control codes or :code:`\\\\u21fb` to send Unicode characters (or you can just input the Unicode characters directly as UTF-8 text). You can use ``kitty +kitten show_key`` to get the key escape codes you want to emulate. diff --git a/kitty/rc/send_text.py b/kitty/rc/send_text.py index d39b2815f..954fc8d8f 100644 --- a/kitty/rc/send_text.py +++ b/kitty/rc/send_text.py @@ -74,8 +74,8 @@ class SendText(RemoteCommand): short_desc = 'Send arbitrary text to specified windows' desc = ( 'Send arbitrary text to specified windows. The text follows Python' - ' escaping rules. So you can use escapes like :code:`\\x1b` to send control codes' - ' and :code:`\\u21fa` to send unicode characters. If you use the :option:`kitty @ send-text --match` option' + ' escaping rules. So you can use escapes like :code:`\\\\x1b` to send control codes' + ' and :code:`\\\\u21fa` to send unicode characters. If you use the :option:`kitty @ send-text --match` option' ' the text will be sent to all matched windows. By default, text is sent to' ' only the currently active window.' )