Skip to main content
Latest
function fn.keytrans
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { keytrans } = fn;

Turn the internal byte representation of keys into a form that can be used for :map. E.g.

:let xx = "\<C-Home>"
:echo keytrans(xx)

    `<C-Home>`

Can also be used as a method:

"\<C-Home>"->keytrans()

Parameters

denops: Denops
string: unknown

Returns

Promise<string>