From 376449f28a11e1eee9df416baef14e14790f6c63 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 12 Apr 2017 10:46:27 +0100 Subject: [PATCH] Add documentation for the set_cursor ui call in json_ui.asciidoc --- doc/json_ui.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/json_ui.asciidoc b/doc/json_ui.asciidoc index beb107f6..9d3e3dc6 100644 --- a/doc/json_ui.asciidoc +++ b/doc/json_ui.asciidoc @@ -44,6 +44,11 @@ Here are the requests that can be written by the json ui on stdout: - modal: display the info in a way that shows Kakoune is waiting for a special action related to it. * info_hide() +* set_cursor(String mode, Coord coord) + set the main cursor position + mode can be: + - prompt: the coordinate line should be 0, and the cursor is in the prompt area + - buffer: the cursor is in the buffer display area The requests that the json ui can interpret on stdin are: