import { windows } from "https://deno.land/x/denops_std@v6.4.0/variable/variable.ts";
Window local variables (windows
or w
)
import type { Denops } from "https://deno.land/x/denops_std@v6.4.0/mod.ts";
import { windows } from "https://deno.land/x/denops_std@v6.4.0/variable/mod.ts";
export async function main(denops: Denops): Promise<void> {
// Set window variable
await windows.set(denops, "hello", "world");
// Get window variable
console.log(await windows.get(denops, "hello"));
// Remove window variable
await windows.remove(denops, "hello");
}