From 8d6a3cff25420f64083fca1daa65fd5f4297c432 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Aug 2022 16:26:49 +0530 Subject: [PATCH] Fix docs build error --- docs/kittens/custom.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/kittens/custom.rst b/docs/kittens/custom.rst index 3ee3b7865..c27880b7a 100644 --- a/docs/kittens/custom.rst +++ b/docs/kittens/custom.rst @@ -53,9 +53,10 @@ kitty API to use with kittens ------------------------------- Kittens have full access to internal kitty APIs. However these are neither -entirely stable nor documented. You can instead use the kitty :doc:`Remote -control API `. Simply call :code:`boss.remote_control`, with -the same arguments you would pass to ``kitty @ ``. For example: +entirely stable nor documented. You can instead use the kitty +:doc:`Remote control API `. Simply call +:code:`boss.call_remote_control()`, with the same arguments you +would pass to ``kitty @``. For example: .. code-block:: python @@ -63,7 +64,7 @@ the same arguments you would pass to ``kitty @ ``. For example: # get the kitty window to which to send text w = boss.window_id_map.get(target_window_id) if w is not None: - boss.call_remote_control(w, ('send-text', 'some text')) + boss.call_remote_control(w, ('send-text', 'hello world'))