Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Filter that can be used for a popup. It handles only the keys 'y', 'Y' and 'n' or 'N'. Invokes the "callback" of the popup menu with the 1 for 'y' or 'Y' and zero for 'n' or 'N' as the second argument. Pressing Esc and 'x' works like pressing 'n'. CTRL-C invokes the callback with -1. Other keys are ignored. See the example here: popup_dialog-example

Parameters

denops: Denops
id: unknown
key: unknown

Returns

Promise<number>