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

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

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

Pretend using scrollbar {which} to move it to position {value}. {which} can be: left Left scrollbar of the current window right Right scrollbar of the current window hor Horizontal scrollbar For the vertical scrollbars {value} can be 1 to the line-count of the buffer. For the horizontal scrollbar the {value} can be between 1 and the maximum line length, assuming 'wrap' is not set. When {dragging} is non-zero it's like dragging the scrollbar, otherwise it's like clicking in the scrollbar. Only works when the {which} scrollbar actually exists, obviously only when using the GUI. Can also be used as a |method|: GetValue()->test_scrollbar('right', 0)

Parameters

denops: Denops
which: unknown
value: unknown
dragging: unknown

Returns

Promise<unknown>