Skip to main content
Module

x/denops_std/function/mod.ts>prompt_getprompt

📚 Standard module for denops.vim
Go to Latest
function prompt_getprompt
import { prompt_getprompt } from "https://deno.land/x/denops_std@v4.3.1/function/mod.ts";

Returns the effective prompt text for buffer {buf}. {buf} can be a buffer name or number. See prompt-buffer.

If the buffer doesn't exist or isn't a prompt buffer, an empty string is returned.

Can also be used as a method:

GetBuffer()->prompt_getprompt()

only available when compiled with the +channel feature

Parameters

denops: Denops
buf: unknown

Returns

Promise<string>