Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>inputdialog

๐Ÿ“š Standard module for denops.vim
Go to Latest
function inputdialog
import { inputdialog } from "https://deno.land/x/denops_std@v3.11.1/function/vim/mod.ts";

Like |input()|, but when the GUI is running and text dialogs are supported, a dialog window pops up to input the text. Example: :let n = inputdialog("value for shiftwidth", shiftwidth()) :if n != "" : let &sw = n :endif When the dialog is cancelled {cancelreturn} is returned. When omitted an empty string is returned. Hitting works like pressing the OK button. Hitting works like pressing the Cancel button. NOTE: Command-line completion is not supported. Can also be used as a |method|: GetPrompt()->inputdialog()

Parameters

denops: Denops
prompt: unknown
optional
text: unknown
optional
cancelreturn: unknown

Returns

Promise<unknown>