Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.inputsecret

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.inputsecret
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { inputsecret } = fn;

This function acts much like the |input()| function with but two exceptions: a) the user's response will be displayed as a sequence of asterisks ("*") thereby keeping the entry secret, and b) the user's response will not be recorded on the input |history| stack. The result is a String, which is whatever the user actually typed on the command-line in response to the issued prompt. NOTE: Command-line completion is not supported. Can also be used as a |method|: GetPrompt()->inputsecret()

Parameters

denops: Denops
prompt: string
optional
text = [UNSUPPORTED]

Returns

Promise<string>