File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * A module to provide expression string function to represents Vim's string constant.
3
+ *
4
+ * ```typescript
5
+ * import type { Denops } from "https://deno.land/x/denops_std@$MODULE_VERSION/mod.ts";
6
+ * import * as fn from "https://deno.land/x/denops_std@$MODULE_VERSION/function/mod.ts";
7
+ * import {
8
+ * type ExprString,
9
+ * exprQuote as q,
10
+ * useExprString,
11
+ * } from "https://deno.land/x/denops_std@$MODULE_VERSION/helper/expr_string.ts";
12
+ *
13
+ * export async function main(denops: Denops): Promise<void> {
14
+ * // Create `ExprString` value with `exprQuote`.
15
+ * const vimKeySequence: ExprString = q`\<Cmd>echo 'foo'\<CR>`;
16
+ *
17
+ * // Use `ExprString` value in `useExprString` block.
18
+ * await useExprString(denops, async (denops) => {
19
+ * await fn.feedkeys(denops, vimKeySequence)
20
+ * await denops.cmd('echo value', { value: q`\U0001F680` })
21
+ * });
22
+ * }
23
+ * ```
24
+ *
25
+ * @module
26
+ */
27
+
1
28
import type { Context , Denops , Dispatcher , Meta } from "../mod.ts" ;
2
29
import is from "https://deno.land/x/unknownutil@v3.16.3/is.ts" ;
3
30
import { execute } from "./execute.ts" ;
You can’t perform that action at this time.
0 commit comments