aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/api.md b/doc/api.md
index 29c7773e..991ef1d7 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -590,6 +590,15 @@ Returns a promise, so consumers must `await` it to get the text.</td>
</tr>
<tr>
+<td>`setCursorX(x)`, `setCursorY(y)`, `setCursorXY(x, y)`,
+`setCursorXCenter(x)`, `setCursorYCenter(y)`, `setCursorXYCenter(x, y)`</td>
+<td>Set the cursor position to `x` and `y` respectively, scrolling the
+view if necessary.<br>
+Variants that end with "Center" will also center the screen around the
+position if it is outside the screen.</td>
+</tr>
+
+<tr>
<td>`url`</td>
<td>Getter for the buffer's URL. Note: this returns a `URL` object, not a
string.</td>