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

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

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

Return the position and size of popup {id}. Returns a Dict with these entries: col screen column of the popup, one-based line screen line of the popup, one-based width width of the whole popup in screen cells height height of the whole popup in screen cells core_col screen column of the text box core_line screen line of the text box core_width width of the text box in screen cells core_height height of the text box in screen cells firstline line of the buffer at top (1 unless scrolled) (not the value of the "firstline" property) lastline line of the buffer at the bottom (updated when the popup is redrawn) scrollbar non-zero if a scrollbar is displayed visible one if the popup is displayed, zero if hidden Note that these are the actual screen positions. They differ from the values in popup_getoptions() for the sizing and positioning mechanism applied.

The "core_" values exclude the padding and border.

If popup window {id} is not found an empty Dict is returned.

Can also be used as a method:

GetPopup()->popup_getpos()

Parameters

denops: Denops
id: unknown

Returns

Promise<Record<string, unknown>>