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'))