import { nvim_input } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";
Queues raw user-input. Unlike nvim_feedkeys()
, this uses a low-level
input buffer and the call is non-blocking (input is processed
asynchronously by the eventloop).
On execution error: does not fail, but updates v:errmsg.
Note:
keycodes
like <CR>
are translated, so "<"
is special. To input a
literal "<"
, send <LT>
.
Note:
For mouse events use nvim_input_mouse()
. The pseudokey form
"<LeftMouse><col,row>"
is deprecated since api-level
6.
Attributes:
api-fast
Parameters:
- {keys} to be typed
Return: Number of bytes actually written (can be fewer than requested if the buffer becomes full).
Parameters
denops: Denops